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

Side by Side Diff: LayoutTests/imported/web-platform-tests/html/semantics/embedded-content/media-elements/loading-the-media-resource/resource-selection-pointer-remove-text.html

Issue 1144143009: W3C Test: Import web-platform-tests/html/semantics (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 <!doctype html>
2 <title>pointer updates (removing text nodes)</title>
3 <script src="../../../../../../../resources/testharness.js"></script>
4 <script src="../../../../../../../resources/testharnessreport.js"></script>
5 <div id=log></div>
6 <script>
7 var a = 0;
8 var b = 0;
9 var c = 0;
10 </script>
11 <video
12 >x<source onerror=a++
13 >x<source onerror=b++ src='resources/delayed-broken-video.py'
14 >x<source onerror=c++
15 >x</video>
16 <script>
17 async_test(function(t) {
18 var video = document.querySelector('video');
19 // remove the text nodes
20 [].forEach.call(video.childNodes, function(node) {
21 if (node.nodeType == node.TEXT_NODE) {
22 video.removeChild(node);
23 }
24 });
25 window.onload = t.step_func(function() {
26 assert_equals(a, 1, 'error events on a');
27 assert_equals(b, 1, 'error events on b');
28 assert_equals(c, 1, 'error events on c');
29 t.done();
30 });
31 });
32 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698