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

Side by Side Diff: webkit/glue/devtools/js/tests.js

Issue 271100: DevTools: enable DevToolsSanityTest.TestCompletionOnPause (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « webkit/glue/devtools/js/debugger_agent.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « webkit/glue/devtools/js/debugger_agent.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698