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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/load-removes-queued-error-event.html

Issue 1984023002: Move web-platform-tests to wpt (part 1 of 2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/imported/web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/load-removes-queued-error-event.html
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/load-removes-queued-error-event.html b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/load-removes-queued-error-event.html
deleted file mode 100644
index 44fc4130f9f41ba061835b23aa21568ff60f32ee..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/load-removes-queued-error-event.html
+++ /dev/null
@@ -1,44 +0,0 @@
-<!doctype html>
-<title>load() removes queued error event</title>
-<script src="../../../../../../../resources/testharness.js"></script>
-<script src="../../../../../../../resources/testharnessreport.js"></script>
-<div id=log></div>
-<script>
-// The loadstart and error event firing tasks are queued in the synchronous
-// section of the resource selection algorithm, so no tasks can come between
-// them. Calling load() in the loadstart event handler removes the queued error
-// event task at very latest opportunity, failing any implementation that fires
-// the events in the same task.
-
-async_test(function(t) {
- var v = document.createElement('video');
- var events = [];
- v.onloadstart = v.onerror = t.step_func(function(e) {
- events.push(e.type);
- if (events.length == 1) {
- v.load();
- } else if (events.length == 3) {
- assert_array_equals(events, ['loadstart', 'loadstart', 'error']);
- t.done();
- }
- });
- v.src = '';
-}, 'video error event');
-
-async_test(function(t) {
- var v = document.createElement('video');
- var s = document.createElement('source');
- var events = [];
- v.onloadstart = s.onerror = t.step_func(function(e) {
- events.push(e.type);
- if (events.length == 1) {
- v.load();
- } else if (events.length == 3) {
- assert_array_equals(events, ['loadstart', 'loadstart', 'error']);
- t.done();
- }
- });
- v.onerror = t.step_func(function() { assert_unreached(); });
- v.appendChild(s);
-}, 'source error event');
-</script>

Powered by Google App Engine
This is Rietveld 408576698