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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/TestExpectations ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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");
« 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