Chromium Code Reviews

Side by Side Diff: trunk/LayoutTests/fast/dom/HTMLScriptElement/script-cancel-crash.html

Issue 283333002: Revert 174019 "Make ScriptLoader into a ResourceOwner" (Closed) Base URL: svn://svn.chromium.org/blink/
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
« no previous file with comments | « no previous file | trunk/LayoutTests/fast/dom/HTMLScriptElement/script-cancel-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 <!DOCTYPE html>
2 <body>
3 <script src="../../../resources/js-test.js"></script>
4 <script>
5 window.jsTestIsAsync = true;
6
7 function requestAndCancel() {
8 var element = document.createElement('script');
9 document.body.appendChild(element);
10 element.setAttribute('src', 'nosuch');
11 document.body.removeChild(element);
12 }
13
14 function makePressure() {
15 p = [];
16 q = Array(1000).join(unescape('xxxxxx'));
17 for (var i = 0; i < 12501; i++) {
18 p.push(new String(q));
19 }
20 }
21
22 for (var i = 0; i < 500; i++)
23 requestAndCancel();
24
25 setTimeout(function() {
26 makePressure();
27 gc();
28 debug('PASS unless crash.');
29 finishJSTest();
30 }, 0);
31 </script>
32 </body>
OLDNEW
« no previous file with comments | « no previous file | trunk/LayoutTests/fast/dom/HTMLScriptElement/script-cancel-crash-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine