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

Unified Diff: LayoutTests/inspector/debugger/debugger-script-preprocessor.html

Issue 15832007: DevTools: Add support for //# sourceURL (sourceMappingURL) comments and deprecate //@ ones (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined Created 7 years, 6 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/debugger/debugger-script-preprocessor.html
diff --git a/LayoutTests/inspector/debugger/debugger-script-preprocessor.html b/LayoutTests/inspector/debugger/debugger-script-preprocessor.html
index dc5546f1d4208613af454555bee535be13b866ec..b70250173734cbfd4b3b1fe9f4e472c49222fd44 100644
--- a/LayoutTests/inspector/debugger/debugger-script-preprocessor.html
+++ b/LayoutTests/inspector/debugger/debugger-script-preprocessor.html
@@ -16,18 +16,18 @@ function test()
function preprocessor(script, name)
{
if (script.indexOf("dynamic" + "Script1") !== -1)
- return script + "//@ sourceURL=dynamicScript1";
+ return script + "//# sourceURL=dynamicScript1";
if (script.indexOf("dynamic" + "Script2") !== -1) {
try {
var w = eval("window");
- return script + "//@ sourceURL=FAIL_window_should_not_be_there";
+ return script + "//# sourceURL=FAIL_window_should_not_be_there";
} catch (e) {
- return script + "//@ sourceURL=dynamicScript2";
+ return script + "//# sourceURL=dynamicScript2";
}
}
// Verify that the |name| argument is correct. Note: if name is not passed in
// the results will be a script with a sourceURL equal to the original file name.
- return script + "//@ sourceURL=" + name + ".js";
+ return script + "//# sourceURL=" + name + ".js";
}
InspectorTest.startDebuggerTest(step1);

Powered by Google App Engine
This is Rietveld 408576698