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

Side by Side Diff: third_party/WebKit/LayoutTests/images/crash-bad-cast.html

Issue 2496663002: Merge css3/image/ and fast/images/ to images/ (Closed)
Patch Set: Address failing tests (3 of them) Created 4 years, 1 month 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
1 <!doctype HTML> 1 <!doctype HTML>
2 <script> 2 <script>
3 function start() { 3 function start() {
4 o4=document.documentElement; 4 o4=document.documentElement;
5 o22=document.body; 5 o22=document.body;
6 o46=document.createElementNS('http://www.w3.org/1999/xhtml','iframe'); 6 o46=document.createElementNS('http://www.w3.org/1999/xhtml','iframe');
7 o46.src="resources/test.svg"; 7 o46.src="resources/test.svg";
8 o46.onload=cb_nodesvgiframes_97_1; 8 o46.onload=cb_nodesvgiframes_97_1;
9 o4.appendChild(o46) 9 o4.appendChild(o46)
10 } 10 }
11 function cb_nodesvgiframes_97_1() { 11 function cb_nodesvgiframes_97_1() {
12 o59=o46.contentDocument.getElementById('svg0'); 12 o59=o46.contentDocument.getElementById('svg0');
13 o61=o46.contentDocument.getElementById('svg3'); 13 o61=o46.contentDocument.getElementById('svg3');
14 o61.innerHTML='<script><![CDATA[\r//]]><\/script>'; 14 o61.innerHTML='<script><![CDATA[\r//]]><\/script>';
15 o22.appendChild(o59); 15 o22.appendChild(o59);
16 document.designMode='on'; 16 document.designMode='on';
17 document.execCommand('selectall'); 17 document.execCommand('selectall');
18 } 18 }
19 if (window.testRunner) 19 if (window.testRunner)
20 testRunner.dumpAsText(); 20 testRunner.dumpAsText();
21 </script> 21 </script>
22 <body onload="start()"> 22 <body onload="start()">
23 <!-- crbug.com/440836: Will crash if we have a bad cast to an Element node while iterating through text. --> 23 <!-- crbug.com/440836: Will crash if we have a bad cast to an Element node while iterating through text. -->
24 </body> 24 </body>
25 25
26 26
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698