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

Unified Diff: LayoutTests/inspector/sources/debugger/resource-script-mapping.html

Issue 368643002: DevTools: Make addFileForURL more robust (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Added a test. Created 6 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
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/resource-script-mapping-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/sources/debugger/resource-script-mapping.html
diff --git a/LayoutTests/inspector/sources/debugger/resource-script-mapping.html b/LayoutTests/inspector/sources/debugger/resource-script-mapping.html
index 483342a20df1dc799a4dc58e2e34adb480c83439..7c51ccffda259129ab250df277025d4684861354 100644
--- a/LayoutTests/inspector/sources/debugger/resource-script-mapping.html
+++ b/LayoutTests/inspector/sources/debugger/resource-script-mapping.html
@@ -33,7 +33,7 @@ function test()
InspectorTest.waitForWorkspaceUISourceCodeAddedEvent(originalUISourceCodeAdded);
defaultScriptMapping.addScript(script);
resourceScriptMapping.addScript(script);
-
+
var originalUISourceCode;
script.rawLocationToUILocation(0, 5);
@@ -113,7 +113,7 @@ function test()
InspectorTest.waitForWorkspaceUISourceCodeAddedEvent(originalUISourceCodeAdded);
defaultScriptMapping.addScript(script1);
resourceScriptMapping.addScript(script1);
-
+
script1.rawLocationToUILocation(0, 5);
function originalUISourceCodeAdded(uiSourceCode)
@@ -203,6 +203,20 @@ function test()
InspectorTest.checkRawLocation(script2, 6, 0, mockUISourceCode.uiLocationToRawLocation(target, 6, 0));
InspectorTest.dumpUISourceCode(mockUISourceCode, next);
}
+ },
+
+ function testMalformedResourceURI(next)
vsevik 2014/07/02 12:01:32 This belongs to LayoutTests/inspector/sources/debu
alph 2014/07/02 12:20:27 Done.
+ {
+ var url = "http://vk.com/widget_like.php?app=2925955&width=100%&_ver=1&page=0&url=http%3A%2F%2Flenta.ru%2Fnews%2F2014%2F06%2F23%2Fnavalny%2F&type=button&verb=1&color=&title=%D0%A0%D0%B5%D0%BF%D1%80%D0%BE%D0%B4%D1%83%D0%BA%D1%86%D0%B8%D1%8E%20%D0%B8%D0%B7%D1%8A%D1%8F%D1%82%D0%BE%D0%B9%20%D1%83%20%D0%9D%D0%B0%D0%B2%D0%B0%D0%BB%D1%8C%D0%BD%D0%BE%D0%B3%D0%BE%20%D0%BA%D0%B0%D1%80%D1%82%D0%B8%D0%BD%D1%8B%20%D0%BF%D0%BE%D0%B2%D0%B5%D1%81%D0%B8%D0%BB%D0%B8%20%D0%BD%D0%B0%20%D0%9A%D1%83%D1%82%D1%83%D0%B7%D0%BE%D0%B2%D1%81%D0%BA%D0%BE%D0%BC%20%D0%BF%D1%80%D0%BE%D1%81%D0%BF%D0%B5%D0%BA%D1%82%D0%B5&image=http%3A%2F%2Ficdn.lenta.ru%2Fimages%2F2014%2F06%2F23%2F16%2F20140623161555888%2Fpic_83fbbd49ee3e37c37083bda0c8f0f051.jpg&text=&h=20&height=20&146f6515efe";
aandrey 2014/07/02 11:30:11 decodeURIComponent("http://vk.com/widget_like.php?
vsevik 2014/07/02 12:01:32 Please use a reduced version of this URL, e.g. htt
alph 2014/07/02 12:20:27 Sorry, I just didn't want to invest in finding wha
+
+ InspectorTest.addResult("Adding uiSourceCode for finished resource.");
+ InspectorTest.waitForWorkspaceUISourceCodeAddedEvent(uiSourceCodeForResourceAdded);
+ InspectorTest.addMockUISourceCodeToWorkspace(url, WebInspector.resourceTypes.Script, "<content script resource content>");
+
+ function uiSourceCodeForResourceAdded(uiSourceCode)
+ {
+ InspectorTest.dumpUISourceCode(uiSourceCode, next);
+ }
}
]);
};
« no previous file with comments | « no previous file | LayoutTests/inspector/sources/debugger/resource-script-mapping-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698