| Index: LayoutTests/inspector/sources/debugger/ui-source-code.html
|
| diff --git a/LayoutTests/inspector/sources/debugger/ui-source-code.html b/LayoutTests/inspector/sources/debugger/ui-source-code.html
|
| deleted file mode 100644
|
| index 810ce1334863f4e7314839c995cbd5189ee16bdb..0000000000000000000000000000000000000000
|
| --- a/LayoutTests/inspector/sources/debugger/ui-source-code.html
|
| +++ /dev/null
|
| @@ -1,53 +0,0 @@
|
| -<html>
|
| -<head>
|
| -<script src="../../../http/tests/inspector/inspector-test.js"></script>
|
| -
|
| -<script>
|
| -
|
| -function test()
|
| -{
|
| - var MockProject = function() {}
|
| - MockProject.prototype.requestFileContent = function(uri, callback)
|
| - {
|
| - InspectorTest.addResult("Content is requested from SourceCodeProvider.");
|
| - setTimeout(callback.bind(null, "var x = 0;"), 0);
|
| - }
|
| - MockProject.prototype.isServiceProject = function() { return false; };
|
| - MockProject.prototype.type = function() { return WebInspector.projectTypes.Debugger; }
|
| -
|
| - InspectorTest.runTestSuite([
|
| - function testUISourceCode(next)
|
| - {
|
| - var uiSourceCode = new WebInspector.UISourceCode(new MockProject(), "parentPath", "name", "originURL", "url", WebInspector.resourceTypes.Script);
|
| - function didRequestContent(callNumber, content)
|
| - {
|
| - InspectorTest.addResult("Callback " + callNumber + " is invoked.");
|
| - InspectorTest.assertEquals("text/javascript", WebInspector.SourcesView.uiSourceCodeHighlighterType(uiSourceCode));
|
| - InspectorTest.assertEquals("var x = 0;", content);
|
| -
|
| - if (callNumber === 3) {
|
| - // Check that sourceCodeProvider.requestContent won't be called anymore.
|
| - uiSourceCode.requestContent(function(content)
|
| - {
|
| - InspectorTest.assertEquals("text/javascript", WebInspector.SourcesView.uiSourceCodeHighlighterType(uiSourceCode));
|
| - InspectorTest.assertEquals("var x = 0;", content);
|
| - next();
|
| - });
|
| - }
|
| - }
|
| - // Check that all callbacks will be invoked.
|
| - uiSourceCode.requestContent(didRequestContent.bind(null, 1));
|
| - uiSourceCode.requestContent(didRequestContent.bind(null, 2));
|
| - uiSourceCode.requestContent(didRequestContent.bind(null, 3));
|
| - }
|
| - ]);
|
| -};
|
| -
|
| -</script>
|
| -
|
| -</head>
|
| -
|
| -<body onload="runTest()">
|
| -<p>Tests UISourceCode class.</p>
|
| -</body>
|
| -</html>
|
|
|