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

Side by Side Diff: LayoutTests/inspector/snippet-storage.html

Issue 313603003: Devtools: get rid of ProjectWillReset event, introduce ProjectRemoved instead of it (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../http/tests/inspector/inspector-test.js"></script> 3 <script src="../http/tests/inspector/inspector-test.js"></script>
4 <script> 4 <script>
5 function test() 5 function test()
6 { 6 {
7 var settingPrefix = "test"; 7 var settingPrefix = "test";
8 var namePrefix = "Test snippet #"; 8 var namePrefix = "Test snippet #";
9 var snippetStorage = new WebInspector.SnippetStorage(settingPrefix, namePref ix); 9 var snippetStorage = new WebInspector.SnippetStorage(settingPrefix, namePref ix);
10 snippetStorage.reset();
vsevik 2014/06/04 06:04:50 Do you really need to remove this? This was added
11 10
12 function dumpSnippets(snippets) 11 function dumpSnippets(snippets)
13 { 12 {
14 for (var i = 0; i < snippets.length; ++i) { 13 for (var i = 0; i < snippets.length; ++i) {
15 var snippet = snippets[i]; 14 var snippet = snippets[i];
16 InspectorTest.addResult(" Snippet: id = " + snippet.id + ", name = '" + snippet.name + "', content = '" + snippet.content + "'."); 15 InspectorTest.addResult(" Snippet: id = " + snippet.id + ", name = '" + snippet.name + "', content = '" + snippet.content + "'.");
17 } 16 }
18 } 17 }
19 18
20 function dumpSavedSnippets() 19 function dumpSavedSnippets()
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 dumpStorageSnippets(); 56 dumpStorageSnippets();
58 57
59 InspectorTest.completeTest(); 58 InspectorTest.completeTest();
60 }; 59 };
61 </script> 60 </script>
62 </head> 61 </head>
63 <body onload="runTest()"> 62 <body onload="runTest()">
64 <p>Tests snippet storage.</p> 63 <p>Tests snippet storage.</p>
65 </body> 64 </body>
66 </html> 65 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698