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

Side by Side Diff: LayoutTests/svg/custom/path-domsubtreemodified-crash.html

Issue 62083002: Remove support for the externalResourcesRequired attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebaseline test Created 6 years, 11 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 <html>
3 <!-- Test for WK92604 - Passes if no crash occurs and "PASS" is printed. -->
4 <body id="body">
5 <svg xmlns="http://www.w3.org/2000/svg">
6 <line stroke="green" vector-effect="non-scaling-stroke" y2="1"/>
7 <defs id="defs"></defs>
8 </svg>
9 <script>
10 if (window.testRunner) {
11 testRunner.dumpAsText();
12 testRunner.waitUntilDone();
13 }
14
15 var body = document.getElementById("body");
16 var defs = document.getElementById("defs");
17 document.addEventListener("DOMContentLoaded", doCrash, false);
18
19 body.addEventListener("DOMSubtreeModified", function() {
20 // Prevent infinite loop of modification events.
21 this.removeEventListener("DOMSubtreeModified", arguments.callee);
22
23 document.write("This test passes if no crash occurs and PASS is printed. PASS");
24
25 if (window.testRunner)
26 testRunner.notifyDone();
27 }, false);
28
29 function doCrash() {
30 var farthestViewportElement = defs["farthestViewportElement"];
31 var externalResourcesRequired = farthestViewportElement["externalResourc esRequired"];
32 externalResourcesRequired["baseVal"] = undefined;
33 body.offsetWidth;
34 body.innerHTML = "FAIL";
35 }
36 </script>
37 </body>
38 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698