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

Unified Diff: LayoutTests/inspector/extensions/extensions-reload.html

Issue 761143003: DevTools: remove ScriptPreprocessor (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 5 years, 10 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
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/inspector/extensions/extensions-reload-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/extensions/extensions-reload.html
diff --git a/LayoutTests/inspector/extensions/extensions-reload.html b/LayoutTests/inspector/extensions/extensions-reload.html
index 05b98c171ed97cf216a1e133939e9937c717bc6a..f7d2654e67d396af33952e2a2359abb93631d5c9 100644
--- a/LayoutTests/inspector/extensions/extensions-reload.html
+++ b/LayoutTests/inspector/extensions/extensions-reload.html
@@ -89,38 +89,6 @@ function extension_testReloadInjectsCodeWithMessage(nextTest)
});
}
-function extension_testReloadPreprocessesCode(nextTest)
-{
- var valueWithPreprocessedCode;
- function onPageWithPreprocessedCodeLoaded()
- {
- webInspector.inspectedWindow.eval("window.__preprocessed", function(value) {
- valueWithPreprocessedCode = value;
- evaluateOnFrontend("InspectorTest.runWhenPageLoads(reply)", onPageWithoutPreprocessedCodeLoaded);
- webInspector.inspectedWindow.reload({ });
- });
- }
- function onPageWithoutPreprocessedCodeLoaded()
- {
- webInspector.inspectedWindow.eval("window.__preprocessed", function(value) {
- output("With preprocessor:\n" + valueWithPreprocessedCode.map(function(url) { return url.split('/').pop(); }).join("\n"));
- output("Without preprocessor: " + value);
- nextTest();
- });
- }
-
- evaluateOnFrontend("InspectorTest.runWhenPageLoads(reply)", onPageWithPreprocessedCodeLoaded);
- function preprocessor(src, url, fName)
- {
- var surl = url + (fName ? '_' + fName : '') + '.js';
- return src + '\nwindow.__preprocessed.push(\"' + surl + '\");\n'+ '//@ sourceURL=' + surl;
- }
- webInspector.inspectedWindow.reload({
- injectedScript: "window.__preprocessed = [];",
- preprocessingScript: "(" + preprocessor +")"
- });
-}
-
</script>
</head>
<body onload="runTest()">
« no previous file with comments | « LayoutTests/TestExpectations ('k') | LayoutTests/inspector/extensions/extensions-reload-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698