| OLD | NEW |
| 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 590 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 601 | 601 |
| 602 TestSuite.prototype.testPauseInSharedWorkerInitialization1 = function() | 602 TestSuite.prototype.testPauseInSharedWorkerInitialization1 = function() |
| 603 { | 603 { |
| 604 // Make sure the worker is loaded. | 604 // Make sure the worker is loaded. |
| 605 this.takeControl(); | 605 this.takeControl(); |
| 606 this._waitForTargets(2, callback.bind(this)); | 606 this._waitForTargets(2, callback.bind(this)); |
| 607 | 607 |
| 608 function callback() | 608 function callback() |
| 609 { | 609 { |
| 610 var target = WebInspector.targetManager.targets(WebInspector.Target.Capa
bility.JS)[0]; | 610 var target = WebInspector.targetManager.targets(WebInspector.Target.Capa
bility.JS)[0]; |
| 611 target._connection.deprecatedRunAfterPendingDispatches(this.releaseContr
ol.bind(this)); | 611 InspectorBackendClass.deprecatedRunAfterPendingDispatches(this.releaseCo
ntrol.bind(this)); |
| 612 } | 612 } |
| 613 }; | 613 }; |
| 614 | 614 |
| 615 TestSuite.prototype.testPauseInSharedWorkerInitialization2 = function() | 615 TestSuite.prototype.testPauseInSharedWorkerInitialization2 = function() |
| 616 { | 616 { |
| 617 this.takeControl(); | 617 this.takeControl(); |
| 618 this._waitForTargets(2, callback.bind(this)); | 618 this._waitForTargets(2, callback.bind(this)); |
| 619 | 619 |
| 620 function callback() | 620 function callback() |
| 621 { | 621 { |
| (...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1213 /** | 1213 /** |
| 1214 * Key event with given key identifier. | 1214 * Key event with given key identifier. |
| 1215 */ | 1215 */ |
| 1216 TestSuite.createKeyEvent = function(key) | 1216 TestSuite.createKeyEvent = function(key) |
| 1217 { | 1217 { |
| 1218 return new KeyboardEvent("keydown", {bubbles: true, cancelable:true, key: ke
y}); | 1218 return new KeyboardEvent("keydown", {bubbles: true, cancelable:true, key: ke
y}); |
| 1219 }; | 1219 }; |
| 1220 | 1220 |
| 1221 window.uiTests = new TestSuite(window.domAutomationController); | 1221 window.uiTests = new TestSuite(window.domAutomationController); |
| 1222 })(window); | 1222 })(window); |
| OLD | NEW |