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

Side by Side Diff: LayoutTests/fast/dom/shadow/shadow-selection-detach-crash.html

Issue 1169613002: Remove unnecessary testRunner.dumpAsText in LayoutTests/fast/dom/shadow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <script src="../../../resources/js-test.js"></script> 2 <script src="../../../resources/js-test.js"></script>
3 <output id="out"></output> 3 <output id="out"></output>
4 <script> 4 <script>
5 description("Garbage collection of Selection objects with shorter lifetimes must not crash."); 5 description("Garbage collection of Selection objects with shorter lifetimes must not crash.");
6 // A Selection object that dies before the window object it is registered to, mu st detach 6 // A Selection object that dies before the window object it is registered to, mu st detach
7 // itself from its window on finalization. 7 // itself from its window on finalization.
8 8
9 self.jsTestIsAsync = true; 9 self.jsTestIsAsync = true;
10 if (window.testRunner) { 10 if (window.testRunner)
11 testRunner.dumpAsText();
12 testRunner.waitUntilDone(); 11 testRunner.waitUntilDone();
13 }
14 12
15 function runTest() { 13 function runTest() {
16 var out = document.getElementById("out"); 14 var out = document.getElementById("out");
17 var root = out.createShadowRoot(); 15 var root = out.createShadowRoot();
18 var sel = root.getSelection(); 16 var sel = root.getSelection();
19 document.body.removeChild(out); 17 document.body.removeChild(out);
20 root = sel = out = null; 18 root = sel = out = null;
21 gc(); 19 gc();
22 testPassed("No crash, including on shutdown..?"); 20 testPassed("No crash, including on shutdown..?");
23 finishJSTest(); 21 finishJSTest();
24 } 22 }
25 window.onload = runTest; 23 window.onload = runTest;
26 </script> 24 </script>
OLDNEW
« no previous file with comments | « LayoutTests/fast/dom/shadow/shadow-root-js-api.html ('k') | LayoutTests/fast/dom/shadow/shadowdom-dynamic-styling.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698