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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/html/marquee-destroyed-without-removed-from-crash.html

Issue 2674673005: Move tests for MARQUEE element to html/marquee/. (Closed)
Patch Set: Created 3 years, 10 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
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script>
3 if (window.testRunner)
4 testRunner.waitUntilDone();
5
6 function start() {
7 div = document.createElement('div');
8 marquee = document.createElement('marquee');
9 div.appendChild(marquee);
10 doc = document.documentElement;
11 iframe = document.createElement('iframe');
12 iframe.src='resources/marquee-destroyed-without-removed-from-crash.svg';
13 doc.appendChild(top.iframe);
14
15 if (location.hash == '#done') {
16 document.write('PASS');
17 if (window.testRunner) {
18 testRunner.dumpAsText();
19 testRunner.notifyDone();
20 }
21 return;
22 }
23 setTimeout('top.reload_page()', 25);
24 }
25
26 function reload_page() {
27 document.removeChild(doc);
28 document.appendChild(doc);
29
30 var count = 0;
31 if (location.hash !== "")
32 count = parseInt(location.hash.substr(1));
33 if (count < 5) {
34 ++count;
35 location.hash = '#' + count;
36 } else {
37 location.hash = 'done';
38 }
39 setTimeout("gc(); location.reload();", 10);
40 }
41 </script>
42 <body onload="start()">
43 crbug.com/447976: crash when marquee element is destroyed without removedFrom.
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698