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

Side by Side Diff: third_party/WebKit/LayoutTests/http/tests/inspector-unit/product-registry-impl-register-sanity.js

Issue 2948183002: DevTools: remove TestRunner.loadLazyModules (Closed)
Patch Set: Created 3 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
OLDNEW
1 1
2 TestRunner.loadLazyModules(['product_registry_impl']).then(test); 2 TestRunner.loadModule('product_registry_impl').then(test);
3 function test() { 3 function test() {
4 TestRunner.addResult("This tests product registry impl's register function."); 4 TestRunner.addResult("This tests product registry impl's register function.");
5 5
6 resetProductRegistry(); 6 resetProductRegistry();
7 ProductRegistryImpl.register([ 7 ProductRegistryImpl.register([
8 "example.(com|org)", 8 "example.(com|org)",
9 "*.example.com", 9 "*.example.com",
10 "test-*.example.com", 10 "test-*.example.com",
11 "subdomain.example.com" 11 "subdomain.example.com"
12 ], [ 12 ], [
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 function logDomainEntry(domainStr) { 55 function logDomainEntry(domainStr) {
56 TestRunner.addResult("Testing: " + domainStr + " -> " + instance.nameForUrl( ('http://' + domainStr).asParsedURL())); 56 TestRunner.addResult("Testing: " + domainStr + " -> " + instance.nameForUrl( ('http://' + domainStr).asParsedURL()));
57 } 57 }
58 58
59 function resetProductRegistry() { 59 function resetProductRegistry() {
60 TestRunner.addResult("Cleared ProductRegistryImpl"); 60 TestRunner.addResult("Cleared ProductRegistryImpl");
61 ProductRegistryImpl._productsByDomainHash.clear(); 61 ProductRegistryImpl._productsByDomainHash.clear();
62 } 62 }
63 } 63 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698