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

Unified Diff: third_party/WebKit/LayoutTests/inspector/uisourcecode-revisions.html

Issue 2695123004: DevTools: Only provide static script content to UISourceCode (Closed)
Patch Set: Now there is less Created 3 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
Index: third_party/WebKit/LayoutTests/inspector/uisourcecode-revisions.html
diff --git a/third_party/WebKit/LayoutTests/inspector/uisourcecode-revisions.html b/third_party/WebKit/LayoutTests/inspector/uisourcecode-revisions.html
index 2aee4b3606c59641ec5e47ff8912405812415217..08dd0eb3e29f8744af6c23832c6a31ebf58d04b9 100644
--- a/third_party/WebKit/LayoutTests/inspector/uisourcecode-revisions.html
+++ b/third_party/WebKit/LayoutTests/inspector/uisourcecode-revisions.html
@@ -14,12 +14,16 @@ function test()
{
callback("<script content>");
}
+ project.requestOriginalFileContent = function(uri)
pfeldman 2017/02/15 23:33:38 Still some extra stuff
einbinder 2017/02/16 00:12:36 You were too fast.
+ {
+ return Promise.resolve("<script content>");
+ }
project.setFileContent = function(uri, newContent, callback)
{
}
return project;
}
-
+
function dumpUISourceCodeWithRevisions(uiSourceCode)
{
var content = uiSourceCode._content;

Powered by Google App Engine
This is Rietveld 408576698