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

Unified Diff: LayoutTests/inspector/sources/debugger/content-providers.html

Issue 1238103002: [DevTools] Do not report edited resources via Page.getResourceContent. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Nuked concatenated, fixed comments Created 5 years, 4 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/content-providers.html
diff --git a/LayoutTests/inspector/sources/debugger/content-providers.html b/LayoutTests/inspector/sources/debugger/content-providers.html
deleted file mode 100644
index 1e934a3de7f862523293b4ef6dfd3c3f4ded3dcf..0000000000000000000000000000000000000000
--- a/LayoutTests/inspector/sources/debugger/content-providers.html
+++ /dev/null
@@ -1,50 +0,0 @@
-<html>
-<head>
-<script src="../../../http/tests/inspector/inspector-test.js"></script>
-
-<script>
-
-function test()
-{
- function createMockScript(id, source, range)
- {
- range = range || [0, 0, 100, 0];
- return {
- requestContent: function(callback)
- {
- callback(source);
- },
- get lineOffset() { return range[0]; },
- get columnOffset() { return range[1]; },
- get endLine() { return range[2]; },
- get endColumn() { return range[3]; }
- };
- }
-
- InspectorTest.runTestSuite([
- function testConcatenatedScriptsContentProvider(next)
- {
- var scripts = [];
- scripts.push(createMockScript("1", "\nfunction baz()\n{\n return 0;\n}\n", [3, 20, 7, 0]));
- scripts.push(createMockScript("2", "function foo() { return 0; }", [0, 10, 0, 38]));
- scripts.push(createMockScript("3", "function bar() { return 0; }", [1, 70, 1, 98]));
- scripts.push(createMockScript("4", "this should not appear in displayed content", [0, 20, 0, 63]));
- var contentProvider = new WebInspector.ConcatenatedScriptsContentProvider(scripts);
- function didRequestContent(content)
- {
- InspectorTest.addResult(content);
- next();
- }
- contentProvider.requestContent(didRequestContent);
- }
- ]);
-};
-
-</script>
-
-</head>
-
-<body onload="runTest()">
-<p>Tests ContentProvider implementations.</p>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698