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

Side by Side Diff: LayoutTests/http/tests/inspector/network/long-script-content.html

Issue 569543002: Gardening: fix long-script-content.html for windows platform. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: adjusted Created 6 years, 3 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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | 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 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../inspector-test.js"></script> 3 <script src="../inspector-test.js"></script>
4 <script src="../network-test.js"></script> 4 <script src="../network-test.js"></script>
5 <script src="../debugger-test.js"></script> 5 <script src="../debugger-test.js"></script>
6 <script> 6 <script>
7 7
8 var scriptElement; 8 var scriptElement;
9 function loadScript() 9 function loadScript()
10 { 10 {
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 } 60 }
61 InspectorTest.addSniffer(WebInspector.Script.prototype, "requestContent" , requestContent); 61 InspectorTest.addSniffer(WebInspector.Script.prototype, "requestContent" , requestContent);
62 62
63 uiSourceCode.requestContent(step6); 63 uiSourceCode.requestContent(step6);
64 } 64 }
65 65
66 function step6(loadedScript) 66 function step6(loadedScript)
67 { 67 {
68 var expected = "console.log('finished');\n"; 68 var expected = "console.log('finished');\n";
69 InspectorTest.assertTrue(!!loadedScript, "No script content"); 69 InspectorTest.assertTrue(!!loadedScript, "No script content");
70 loadedScript = loadedScript.replace(/\r\n/g, '\n'); // on windows we re ceive additional symbol \r at line end.
70 InspectorTest.assertEquals(1024 * 10240 + expected.length, loadedScript. length, "Loaded script length mismatch"); 71 InspectorTest.assertEquals(1024 * 10240 + expected.length, loadedScript. length, "Loaded script length mismatch");
71 var actual = loadedScript.substring(loadedScript.length - expected.lengt h); 72 var actual = loadedScript.substring(loadedScript.length - expected.lengt h);
72 InspectorTest.assertEquals(expected, actual, "Loaded script is corrupted "); 73 InspectorTest.assertEquals(expected, actual, "Loaded script is corrupted ");
73 74
74 InspectorTest.completeTest(); 75 InspectorTest.completeTest();
75 } 76 }
76 } 77 }
77 </script> 78 </script>
78 </head> 79 </head>
79 <body onload="runTest()"> 80 <body onload="runTest()">
80 <p> Tests long script content is correctly shown in source panel after page reload.</p> 81 <p> Tests long script content is correctly shown in source panel after page reload.</p>
81 </body> 82 </body>
82 </html> 83 </html>
83 84
OLDNEW
« no previous file with comments | « LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698