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

Side by Side Diff: LayoutTests/fast/html/marquee-clone-crash.html

Issue 808333002: Add <marquee> crashing test case. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years 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
« no previous file with comments | « no previous file | LayoutTests/fast/html/marquee-clone-crash-expected.txt » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <script>
2 var ex = false;
3 var doc;
4 var count = 0;
5
6 if (window.testRunner)
7 testRunner.waitUntilDone();
8
9 function start() {
10 if (location.hash == "") {
11 location.hash = "#0";
12 } else {
13 count = parseInt(location.hash.substring(1));
14 if (count >= 5) {
15 document.write('PASS');
16 if (window.testRunner) {
17 testRunner.dumpAsText();
18 testRunner.notifyDone();
19 }
20 return;
21 }
22 }
23
24 doc = document.documentElement;
25 mq1 = document.createElement('marquee');
26 var iframe = document.createElement('iframe');
27 iframe.src = "nonexistent";
28
29 doc.appendChild(iframe);
30 mq2 = mq1.cloneNode(false);
31
32 iframe.onload = iframe_onload;
33 setTimeout('start_pause1()', 100);
34 }
35
36 function start_pause1() {
37 document.removeChild(doc);
38 document.appendChild(doc);
39 setTimeout('start_pause2()', 100);
40 }
41
42 function start_pause2() {
43 document.removeChild(doc);
44 gc();
45 document.appendChild(doc);
46 location.hash = '#' + ++count;
47 location.reload();
48 }
49
50 function iframe_onload() {
51 if (ex)
52 return;
53 ex = true;
54
55 var iframe = document.createElement('iframe');
56 iframe.src='resources/marquee-crash.svg';
57 doc.appendChild(iframe);
58 }
59 </script>
60 <body onload="start()"></body>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/html/marquee-clone-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698