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

Unified Diff: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/script-snippet-model.html

Issue 2126973002: DevTools: Convert mimeTypeByExtension and mimeTypeByName to Map (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Better test Created 4 years, 5 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 | third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/script-snippet-model-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/script-snippet-model.html
diff --git a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/script-snippet-model.html b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/script-snippet-model.html
index 82678cd7bed99d71d7388d1956762b8e257432a7..4f2a1bdc762a49d0e4fa3eb8a095f8f0f9ee9400 100644
--- a/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/script-snippet-model.html
+++ b/third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/script-snippet-model.html
@@ -281,6 +281,30 @@ function test()
evaluateSnippetAndDumpEvaluationDetails(uiSourceCode, context, next);
}
},
+
+ function testDangerousNames(next)
+ {
+ resetSnippetsSettings();
+
+ WebInspector.scriptSnippetModel.project().createFile("", null, "", step2.bind(this));
+
+ function step2(uiSourceCode)
+ {
+ uiSourceCode.rename("toString", function() { });
+ InspectorTest.showUISourceCode(uiSourceCode,step3.bind(this));
+ }
+
+ function step3()
+ {
+ WebInspector.scriptSnippetModel.project().createFile("", null, "", step4.bind(this));
+ }
+
+ function step4(uiSourceCode)
+ {
+ uiSourceCode.rename("myfile.toString", function() { });
+ InspectorTest.showUISourceCode(uiSourceCode,next);
+ }
+ }
]);
};
</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/inspector/sources/debugger-ui/script-snippet-model-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698