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

Side by Side Diff: third_party/WebKit/Source/devtools/front_end/Tests.js

Issue 2600323002: DevTools: extract protocol module (Closed)
Patch Set: move inspector backend commands.js Created 3 years, 11 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 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 549 matching lines...) Expand 10 before | Expand all | Expand 10 after
560 this.evaluateInConsole_('globalVar', didEvaluateInConsole.bind(this)); 560 this.evaluateInConsole_('globalVar', didEvaluateInConsole.bind(this));
561 this.takeControl(); 561 this.takeControl();
562 }; 562 };
563 563
564 TestSuite.prototype.testPauseInSharedWorkerInitialization1 = function() { 564 TestSuite.prototype.testPauseInSharedWorkerInitialization1 = function() {
565 // Make sure the worker is loaded. 565 // Make sure the worker is loaded.
566 this.takeControl(); 566 this.takeControl();
567 this._waitForTargets(2, callback.bind(this)); 567 this._waitForTargets(2, callback.bind(this));
568 568
569 function callback() { 569 function callback() {
570 InspectorBackendClass.deprecatedRunAfterPendingDispatches(this.releaseCont rol.bind(this)); 570 Protocol.InspectorBackend.deprecatedRunAfterPendingDispatches(this.release Control.bind(this));
571 } 571 }
572 }; 572 };
573 573
574 TestSuite.prototype.testPauseInSharedWorkerInitialization2 = function() { 574 TestSuite.prototype.testPauseInSharedWorkerInitialization2 = function() {
575 this.takeControl(); 575 this.takeControl();
576 this._waitForTargets(2, callback.bind(this)); 576 this._waitForTargets(2, callback.bind(this));
577 577
578 function callback() { 578 function callback() {
579 var target = SDK.targetManager.targets(SDK.Target.Capability.JS)[0]; 579 var target = SDK.targetManager.targets(SDK.Target.Capability.JS)[0];
580 var debuggerModel = SDK.DebuggerModel.fromTarget(target); 580 var debuggerModel = SDK.DebuggerModel.fromTarget(target);
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after
1103 if (runtimeModel.executionContexts().length >= n) 1103 if (runtimeModel.executionContexts().length >= n)
1104 callback.call(null); 1104 callback.call(null);
1105 else 1105 else
1106 this.addSniffer(SDK.RuntimeModel.prototype, '_executionContextCreated', checkForExecutionContexts.bind(this)); 1106 this.addSniffer(SDK.RuntimeModel.prototype, '_executionContextCreated', checkForExecutionContexts.bind(this));
1107 } 1107 }
1108 }; 1108 };
1109 1109
1110 1110
1111 window.uiTests = new TestSuite(window.domAutomationController); 1111 window.uiTests = new TestSuite(window.domAutomationController);
1112 })(window); 1112 })(window);
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/devtools/BUILD.gn ('k') | third_party/WebKit/Source/devtools/front_end/externs.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698