Index: LayoutTests/http/tests/inspector/network/long-script-content.html |
diff --git a/LayoutTests/http/tests/inspector/network/long-script-content.html b/LayoutTests/http/tests/inspector/network/long-script-content.html |
index ce5e1a4aef2d06a8a9e9b224ccc2b52144af5189..8da12d792d2cb283ad464526ae73990f268abf12 100644 |
--- a/LayoutTests/http/tests/inspector/network/long-script-content.html |
+++ b/LayoutTests/http/tests/inspector/network/long-script-content.html |
@@ -67,6 +67,7 @@ function test() |
{ |
var expected = "console.log('finished');\n"; |
InspectorTest.assertTrue(!!loadedScript, "No script content"); |
+ loadedScript = loadedScript.replace(/\r\n/g, '\n'); // on windows we receive additional symbol \r at line end. |
InspectorTest.assertEquals(1024 * 10240 + expected.length, loadedScript.length, "Loaded script length mismatch"); |
var actual = loadedScript.substring(loadedScript.length - expected.length); |
InspectorTest.assertEquals(expected, actual, "Loaded script is corrupted"); |