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

Unified Diff: LayoutTests/inspector/debugger/script-snippet-model.html

Issue 12622003: Merge 144463 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 9 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 | Source/WebCore/inspector/front-end/NavigatorView.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/inspector/debugger/script-snippet-model.html
===================================================================
--- LayoutTests/inspector/debugger/script-snippet-model.html (revision 145088)
+++ LayoutTests/inspector/debugger/script-snippet-model.html (working copy)
@@ -26,6 +26,7 @@
var snippetName = "TestSnippet" + Math.random();
InspectorTest.addResult("Snippet created.");
WebInspector.scriptSnippetModel.renameScriptSnippet(uiSourceCode, snippetName);
+ uiSourceCode.rename(snippetName);
InspectorTest.assertEquals(1, workspace.uiSourceCodes().length, "Only one snippet uiSourceCode should be present.");
var uiSourceCode = workspace.uiSourceCodes()[0];
if (uiSourceCode.originURL().indexOf(snippetName) === -1)
@@ -40,6 +41,7 @@
var uiSourceCode1 = WebInspector.scriptSnippetModel.createScriptSnippet();
WebInspector.scriptSnippetModel.renameScriptSnippet(uiSourceCode1, "Snippet1");
+ uiSourceCode1.rename("Snippet1");
var content = "";
content += "// This snippet does nothing.\n";
content += "var i = 2+2;\n";
@@ -47,6 +49,7 @@
var uiSourceCode2 = WebInspector.scriptSnippetModel.createScriptSnippet();
WebInspector.scriptSnippetModel.renameScriptSnippet(uiSourceCode2, "Snippet2");
+ uiSourceCode2.rename("Snippet2");
content = "";
content += "// This snippet creates a function that does nothing and returns it.\n";
content += "function doesNothing() {\n";
« no previous file with comments | « no previous file | Source/WebCore/inspector/front-end/NavigatorView.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698