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

Side by Side Diff: LayoutTests/http/tests/inspector-enabled/dom-storage-open.html

Issue 881263002: DevTools: use target-based model accessors only. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../inspector/inspector-test.js"></script> 4 <script src="../inspector/inspector-test.js"></script>
5 <script> 5 <script>
6 6
7 function onload() 7 function onload()
8 { 8 {
9 if (window.testRunner) 9 if (window.testRunner)
10 testRunner.waitUntilDone(); 10 testRunner.waitUntilDone();
11 11
12 window.sessionStorage["inspector"] = "true"; 12 window.sessionStorage["inspector"] = "true";
13 13
14 if (window.testRunner) 14 if (window.testRunner)
15 testRunner.showWebInspector(); 15 testRunner.showWebInspector();
16 runTest(); 16 runTest();
17 } 17 }
18 18
19 function test() 19 function test()
20 { 20 {
21 function callback() 21 function callback()
22 { 22 {
23 WebInspector.domStorageModel.enable(); 23 InspectorTest.domStorageModel.enable();
24 var storages = WebInspector.domStorageModel.storages(); 24 var storages = InspectorTest.domStorageModel.storages();
25 for (var i = 0; i < storages.length; ++i) { 25 for (var i = 0; i < storages.length; ++i) {
26 InspectorTest.addResult("SecurityOrigin: " + storages[i].securityOri gin); 26 InspectorTest.addResult("SecurityOrigin: " + storages[i].securityOri gin);
27 InspectorTest.addResult("IsLocalStorage: " + storages[i].isLocalStor age); 27 InspectorTest.addResult("IsLocalStorage: " + storages[i].isLocalStor age);
28 } 28 }
29 InspectorTest.completeTest(); 29 InspectorTest.completeTest();
30 } 30 }
31 InspectorTest.runAfterPendingDispatches(callback); 31 InspectorTest.runAfterPendingDispatches(callback);
32 } 32 }
33 33
34 </script> 34 </script>
35 35
36 </head> 36 </head>
37 <body onload="onload()"> 37 <body onload="onload()">
38 <p>Tests that Web Inspector gets populated with DOM storages according to securi ty origins found in the page.</p> 38 <p>Tests that Web Inspector gets populated with DOM storages according to securi ty origins found in the page.</p>
39 </body> 39 </body>
40 </html> 40 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698