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

Side by Side Diff: LayoutTests/svg/dom/stylesheet-candidate-node-crash-main.html

Issue 7694026: Merge 93227 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 years, 4 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
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 Test passes if it does not crash. 3 Test passes if it does not crash.
4 <script> 4 <script>
5 if (window.layoutTestController) 5 if (window.layoutTestController)
6 layoutTestController.dumpAsText(); 6 layoutTestController.dumpAsText();
7 7
8 function runTest() { 8 function runTest() {
9 svgdoc = document.getElementById('root').contentDocument; 9 svgdoc = document.getElementById('root').contentDocument;
10 var style = document.createElement('style'); 10 var style = document.createElement('style');
11 var test1 = svgdoc.getElementById('test1'); 11 var test1 = svgdoc.getElementById('test1');
12 test1.appendChild(style); 12 test1.appendChild(style);
13 svgdoc.getElementById('test2').setAttribute('xlink:href', 0); 13 svgdoc.getElementById('test2').setAttribute('xlink:href', 0);
14 svgdoc.getElementById('test').setAttribute('stroke', 0); 14 svgdoc.getElementById('test').setAttribute('stroke', 0);
15 } 15 }
16 </script> 16 </script>
17 <object data="resources/stylesheet-candidate-node-crash.svg" id="root" onload="r unTest();" type="image/svg+xml"></object> 17 <object data="resources/stylesheet-candidate-node-crash.svg" id="root" onload="r unTest();" type="image/svg+xml"></object>
18 </html> 18 </html>
19 19
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698