| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 | 5 |
| 6 /** | 6 /** |
| 7 * @fileoverview This file contains small testing framework along with the | 7 * @fileoverview This file contains small testing framework along with the |
| 8 * test suite for the frontend. These tests are a part of the continues build | 8 * test suite for the frontend. These tests are a part of the continues build |
| 9 * and are executed by the devtools_sanity_unittest.cc as a part of the | 9 * and are executed by the devtools_sanity_unittest.cc as a part of the |
| 10 * Interactive UI Test suite. | 10 * Interactive UI Test suite. |
| (...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 718 function(bestMatchOnly, completionsReadyCallback, dotNotation, | 718 function(bestMatchOnly, completionsReadyCallback, dotNotation, |
| 719 bracketNotation, prefix, result, isException) { | 719 bracketNotation, prefix, result, isException) { |
| 720 test.assertTrue(!isException, | 720 test.assertTrue(!isException, |
| 721 'Exception while collecting completions'); | 721 'Exception while collecting completions'); |
| 722 for (var i = 0; i < expectedProperties.length; i++) { | 722 for (var i = 0; i < expectedProperties.length; i++) { |
| 723 var name = expectedProperties[i]; | 723 var name = expectedProperties[i]; |
| 724 test.assertTrue(result[name], 'Name ' + name + | 724 test.assertTrue(result[name], 'Name ' + name + |
| 725 ' not found among the completions: ' + | 725 ' not found among the completions: ' + |
| 726 JSON.stringify(result)); | 726 JSON.stringify(result)); |
| 727 } | 727 } |
| 728 test.releaseControl(); | 728 setTimeout(callback, 0); |
| 729 }); | 729 }); |
| 730 WebInspector.console.prompt.text = expression; | 730 WebInspector.console.prompt.text = expression; |
| 731 WebInspector.console.prompt.autoCompleteSoon(); | 731 WebInspector.console.prompt.autoCompleteSoon(); |
| 732 } | 732 } |
| 733 | 733 |
| 734 this.takeControl(); | 734 this.takeControl(); |
| 735 }; | 735 }; |
| 736 | 736 |
| 737 | 737 |
| 738 /** | 738 /** |
| (...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1602 /** | 1602 /** |
| 1603 * Run specified test on a fresh instance of the test suite. | 1603 * Run specified test on a fresh instance of the test suite. |
| 1604 * @param {string} name Name of a test method from TestSuite class. | 1604 * @param {string} name Name of a test method from TestSuite class. |
| 1605 */ | 1605 */ |
| 1606 uiTests.runTest = function(name) { | 1606 uiTests.runTest = function(name) { |
| 1607 new TestSuite().runTest(name); | 1607 new TestSuite().runTest(name); |
| 1608 }; | 1608 }; |
| 1609 | 1609 |
| 1610 | 1610 |
| 1611 } | 1611 } |
| OLD | NEW |