Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
2011-03-30 Pavel Podivilov <podivilov@chromium.org>
Reviewed by Pavel Feldman. Web Inspector: add test for script formatter worker. https://bugs.webkit.org/show_bug.cgi?id=57447 * inspector/debugger/script-formatter-expected.txt: Added. * inspector/debugger/script-formatter.html: Added. * platform/chromium/test_expectations.txt: 2011-03-30 Pavel Podivilov <podivilov@chromium.org> Reviewed by Pavel Feldman. Web Inspector: add test for script formatter worker. https://bugs.webkit.org/show_bug.cgi?id=57447 Test: inspector/debugger/script-formatter.html * GNUmakefile.am: * inspector/front-end/DebuggerPresentationModel.js: (WebInspector.DebuggerPresentationModel): (WebInspector.DebuggerPresentationModel.prototype.toggleFormatSourceFiles): Canonical link: https://commits.webkit.org/72458@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@82667 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Pavel Podivilov
committed
Apr 1, 2011
1 parent
49266d2
commit 3685936964fb0277b34271e2248f0096c52de848
Showing
7 changed files
with
75 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,5 @@ | ||
Tests the script formatting functionality. | ||
|
||
|
||
Running: testScriptFormatterWorker | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -0,0 +1,41 @@ | ||
<html> | ||
<head> | ||
<script src="../../http/tests/inspector/inspector-test.js"></script> | ||
<script src="../../http/tests/inspector/debugger-test.js"></script> | ||
|
||
<script> | ||
|
||
var test = function() | ||
{ | ||
InspectorTest.runTestSuite([ | ||
function testScriptFormatterWorker(next) | ||
{ | ||
var worker = new Worker("ScriptFormatterWorker.js"); | ||
|
||
worker.onmessage = InspectorTest.safeWrap(function(event) | ||
{ | ||
InspectorTest.assertEquals("var x = 0;", event.data.formattedSource); | ||
InspectorTest.completeTest(); | ||
}); | ||
|
||
worker.onerror = function(event) | ||
{ | ||
InspectorTest.addResult("Error in worker: " + event.data); | ||
InspectorTest.completeTest(); | ||
}; | ||
|
||
worker.postMessage("var x=0"); | ||
} | ||
]); | ||
} | ||
|
||
</script> | ||
|
||
</head> | ||
|
||
<body onload="runTest()"> | ||
<p>Tests the script formatting functionality. | ||
</p> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters