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

Side by Side Diff: LayoutTests/fast/css/giant-stylesheet-crash.html

Issue 46063006: CRLF -> LF in giant-stylesheet-crash.html (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <head> 1 <head>
2 <script> 2 <script>
3 if (window.testRunner) 3 if (window.testRunner)
4 testRunner.dumpAsText(); 4 testRunner.dumpAsText();
5 </script> 5 </script>
6 6
7 <script> 7 <script>
8 var styleElement = document.createElement('style'); 8 var styleElement = document.createElement('style');
9 styleElement.setAttribute('type', 'text/css'); 9 styleElement.setAttribute('type', 'text/css');
10 10
11 var str="z"; 11 var str="z";
12 for (var i = 0; i < 16; i++) { 12 for (var i = 0; i < 16; i++) {
13 str += str; 13 str += str;
14 } 14 }
15 for (var i = 0; i < 1+(1<<16); i++){ 15 for (var i = 0; i < 1+(1<<16); i++){
16 var txt = document.createTextNode(str); 16 var txt = document.createTextNode(str);
17 styleElement.appendChild(txt); 17 styleElement.appendChild(txt);
18 } 18 }
19 19
20 document.getElementsByTagName('head')[0].appendChild(styleElement); 20 document.getElementsByTagName('head')[0].appendChild(styleElement);
21 </script> 21 </script>
22 </head> 22 </head>
23 <body> 23 <body>
24 This test verifies that creating a huge inline stylesheet doesn't crash. 24 This test verifies that creating a huge inline stylesheet doesn't crash.
25 </body> 25 </body>
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698