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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector/security/origin-group-names-unique.html

Issue 2493373002: DevTools: rename WebInspector into modules. (Closed)
Patch Set: for bots Created 4 years, 1 month 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
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <script src="../inspector-test.js"></script> 3 <script src="../inspector-test.js"></script>
4 <script src="../security-test.js"></script> 4 <script src="../security-test.js"></script>
5 <script> 5 <script>
6 function test() 6 function test()
7 { 7 {
8 var originGroupNameSize = Object.keys(WebInspector.SecurityPanelSidebarTree. OriginGroupName).length; 8 var originGroupNameSize = Object.keys(Security.SecurityPanelSidebarTree.Orig inGroupName).length;
9 9
10 var deduplicatedNames = new Set(); 10 var deduplicatedNames = new Set();
11 for (var key in WebInspector.SecurityPanelSidebarTree.OriginGroupName) { 11 for (var key in Security.SecurityPanelSidebarTree.OriginGroupName) {
12 var name = WebInspector.SecurityPanelSidebarTree.OriginGroupName[key]; 12 var name = Security.SecurityPanelSidebarTree.OriginGroupName[key];
13 deduplicatedNames.add(name); 13 deduplicatedNames.add(name);
14 } 14 }
15 15
16 InspectorTest.addResult("Number of names (" + originGroupNameSize + ") == nu mber of unique names (" + deduplicatedNames.size + "): " + (originGroupNameSize == deduplicatedNames.size) + " (expected: true)"); 16 InspectorTest.addResult("Number of names (" + originGroupNameSize + ") == nu mber of unique names (" + deduplicatedNames.size + "): " + (originGroupNameSize == deduplicatedNames.size) + " (expected: true)");
17 17
18 InspectorTest.completeTest(); 18 InspectorTest.completeTest();
19 } 19 }
20 </script> 20 </script>
21 </head> 21 </head>
22 <body onload="runTest()"> 22 <body onload="runTest()">
23 <p>Tests that origin group names in the Security panel are distinct.</p> 23 <p>Tests that origin group names in the Security panel are distinct.</p>
24 </body> 24 </body>
25 </html> 25 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698