Commit 60a3e5a8 authored by loislo@chromium.org's avatar loislo@chromium.org

Gardening: fix long-script-content.html for windows platform.

On windows we receive longer script because \r\n

BUG=30536
TBR= vsevik@chromium.org

Review URL: https://codereview.chromium.org/569543002

git-svn-id: svn://svn.chromium.org/blink/trunk@181905 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent be80f0ef
......@@ -1155,7 +1155,6 @@ crbug.com/384566 svg/custom/textPath-change-reference2.svg [ ImageOnlyFailure Pa
# switching to apache-win32: needs triaging.
crbug.com/30536 [ Win ] http/tests/css/missing-repaint-after-slow-style-sheet.pl [ ImageOnlyFailure ]
crbug.com/30536 [ Win ] http/tests/images/drag-image-to-desktop.html [ Failure ]
crbug.com/30536 [ Win ] http/tests/inspector/network/long-script-content.html [ Failure ]
crbug.com/30536 [ Win ] http/tests/local/blob/send-data-blob.html [ Failure ]
crbug.com/30536 [ Win ] http/tests/local/blob/send-hybrid-blob.html [ Failure Timeout ]
crbug.com/30536 [ Win ] http/tests/security/XFrameOptions/x-frame-options-cached.html [ Failure ]
......
......@@ -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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment