forked from shaka-project/shaka-player
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: Flatten test environment for Chromecast (shaka-project#6640)
Chromecast WebDriver Server and Karma both used iframes, which caused complications when testing on Chromecast. The test environment couldn't directly access `cast.__platform__` APIs, and more recently stopped being able to access EME due to presumed mistakes in the platform's implementation of iframe permission policies. This resolves the issue by removing iframes at both levels. - Flatten Karma's environment using "useIframe: false" and "runInParent: true" - Remove test flag --single-run; not supported in combination with Karma's "useIframe: false" option - Add a test boot file to force closure to use dynamic script tags instead of document.write; required with Karma's "useIframe: false" option - Adjust screenshot tests not to assume an iframe host - Fix compatibilty between Tizen and Karma's useIframe:false - joeyparrish/karma@32e8735 - joeyparrish/karma@f2132cc
- Loading branch information
1 parent
7ab0691
commit c48e435
Showing
5 changed files
with
38 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/*! @license | ||
* Shaka Player | ||
* Copyright 2016 Google LLC | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
// These definitions will override the defaults when the Closure base library | ||
// is loaded. This is necessary to get Closure to load dependencies by | ||
// creating DOM elements in JavaScript, rather than the legacy default of using | ||
// document.write(). This is more compatible with a wider variety of setups, | ||
// and allows us to enable Karma options {useIframe: false, runInParent: true} | ||
// to test in a single frame. | ||
window['CLOSURE_UNCOMPILED_DEFINES'] = { | ||
'goog.ENABLE_CHROME_APP_SAFE_SCRIPT_LOADING': true, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters