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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/content-security-policy/media-src/media-src-7_3_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_3_2.sub.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/media-src/media-src-7_3_2.html b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/media-src/media-src-7_3_2.sub.html
similarity index 87%
rename from third_party/WebKit/LayoutTests/external/wpt/content-security-policy/media-src/media-src-7_3_2.html
rename to third_party/WebKit/LayoutTests/external/wpt/content-security-policy/media-src/media-src-7_3_2.sub.html
index 597ac7f8fa7e05ef9a605a46bc982b02d84ec4d5..5d13624c091bcdc7920bc4a04a84cd93418a02eb 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/media-src/media-src-7_3_2.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/content-security-policy/media-src/media-src-7_3_2.sub.html
@@ -13,12 +13,7 @@
var source_test =
async_test("Disallowed track element onerror handler fires.");
- var trackURL = location.protocol +
- "//www." +
- location.hostname +
- ":" +
- location.port +
- "/media/foo.vtt";
+ var trackURL = location.protocol + "//{{domains[www]}}:{{ports[http][0]}}/media/foo.vtt";
function media_loaded(t) {
t.step( function () {
@@ -36,8 +31,8 @@
onerror="media_error_handler(source_test)"
crossorigin>
<source id="audioSourceObject"
- type="audio/mpeg"
- src="/media/white.mp4">
+ type="audio/ogg"
+ src="/media/A4.ogv">
<track default
id="trackObject"
kind="subtitles"
@@ -53,7 +48,7 @@
source_test.set_status(source_test.FAIL);
});
- setTimeout(function() {
+ setTimeout(function() {
if(source_test.phase != source_test.phases.COMPLETE) {
source_test.step( function () { assert_unreached("Onerror event never fired for track element."); });
source_test.done();

Powered by Google App Engine
This is Rietveld 408576698