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

Unified Diff: LayoutTests/inspector/sources/debugger/ui-source-code.html

Issue 1153923005: DevTools: shard inspector/debugger tests for faster execution. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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
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>

Powered by Google App Engine
This is Rietveld 408576698