Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/media-src/media-src-7_1_2.sub.html

Issue 2766913003: Fixed and improved content-security-policy/media-src tests (Closed)
Patch Set: Re-edited TestExpectations after a rebase-update to try to make the patch apply properly this time Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/media-src/media-src-7_1_2.sub.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/media-src/media-src-7_1_2.html b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/media-src/media-src-7_1_2.sub.html
similarity index 89%
rename from third_party/WebKit/LayoutTests/external/wpt/content-security-policy/media-src/media-src-7_1_2.html
rename to third_party/WebKit/LayoutTests/external/wpt/content-security-policy/media-src/media-src-7_1_2.sub.html
index 61d4b142579015561b1a1da222ebbf5d47e834c7..58b566c1dbcda92c29390dce84b1c18376ae7581 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/media-src/media-src-7_1_2.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/media-src/media-src-7_1_2.sub.html
@@ -15,12 +15,7 @@
var source_test = async_test("Disallowed async video source element");
// we assume tests are run from 'hostname' and 'www.hostname' or 'www2.hostname' is a valid alias
- var mediaURL = location.protocol +
- "//www2." +
- location.hostname +
- ":" +
- location.port +
- "/media/white.mp4";
+ var mediaURL = location.protocol + "//{{domains[www2]}}:{{ports[http][0]}}/media/A4.ogv";
function media_loaded(t) {
t.step( function () {
@@ -37,7 +32,7 @@
<video id="videoObject" width="320" height="240" controls
onloadeddata="media_loaded(source_test)">
<source id="videoSourceObject"
- type="video/mp4"
+ type="video/ogg"
onerror="media_error_handler(source_test)">
</video>
<video id="videoObject2" width="320" height="240" controls

Powered by Google App Engine
This is Rietveld 408576698