| 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 560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 571 | 571 |
| 572 TestSuite.prototype.testPauseInSharedWorkerInitialization1 = function() | 572 TestSuite.prototype.testPauseInSharedWorkerInitialization1 = function() |
| 573 { | 573 { |
| 574 // Make sure the worker is loaded. | 574 // Make sure the worker is loaded. |
| 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 { | 579 { |
| 580 var target = WebInspector.targetManager.targetsWithJSContext()[0]; | 580 var target = WebInspector.targetManager.targetsWithJSContext()[0]; |
| 581 target._connection.runAfterPendingDispatches(this.releaseControl.bind(th
is)); | 581 target._connection.deprecatedRunAfterPendingDispatches(this.releaseContr
ol.bind(this)); |
| 582 } | 582 } |
| 583 }; | 583 }; |
| 584 | 584 |
| 585 TestSuite.prototype.testPauseInSharedWorkerInitialization2 = function() | 585 TestSuite.prototype.testPauseInSharedWorkerInitialization2 = function() |
| 586 { | 586 { |
| 587 this.takeControl(); | 587 this.takeControl(); |
| 588 this._waitForTargets(2, callback.bind(this)); | 588 this._waitForTargets(2, callback.bind(this)); |
| 589 | 589 |
| 590 function callback() | 590 function callback() |
| 591 { | 591 { |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1070 */ | 1070 */ |
| 1071 TestSuite.createKeyEvent = function(keyIdentifier) | 1071 TestSuite.createKeyEvent = function(keyIdentifier) |
| 1072 { | 1072 { |
| 1073 var evt = document.createEvent("KeyboardEvent"); | 1073 var evt = document.createEvent("KeyboardEvent"); |
| 1074 evt.initKeyboardEvent("keydown", true /* can bubble */, true /* can cancel *
/, null /* view */, keyIdentifier, ""); | 1074 evt.initKeyboardEvent("keydown", true /* can bubble */, true /* can cancel *
/, null /* view */, keyIdentifier, ""); |
| 1075 return evt; | 1075 return evt; |
| 1076 }; | 1076 }; |
| 1077 | 1077 |
| 1078 window.uiTests = new TestSuite(window.domAutomationController); | 1078 window.uiTests = new TestSuite(window.domAutomationController); |
| 1079 })(window); | 1079 })(window); |
| OLD | NEW |