Skip to content

Commit bea8424

Browse files
committed
Speed up IDE tests
These sleeps were killing execution time and not really helping
1 parent 234e637 commit bea8424

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

common/src/js/core/lib/scriptaculous/unittest.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ Test.Unit.Runner.prototype = {
165165
}
166166
this.currentTest = 0;
167167
this.logger = new Test.Unit.Logger(this.options.testLog);
168-
setTimeout(this.runTests.bind(this), 1000);
168+
setTimeout(this.runTests.bind(this), 100);
169169
},
170170
parseResultsURLQueryParameter: function() {
171171
return window.location.search.parseQuery()["resultsURL"];

ide/src/extension/content/tests/functional/TestCore-test.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
</div>
2929
<script type="text/javascript">
3030
Test.Unit.Testcase.prototype.waitFor = function(condition, nextPart) {
31-
this.wait(3000, function() {
31+
this.wait(200, function() {
3232
if (condition()) {
3333
nextPart();
3434
} else {
@@ -44,14 +44,14 @@
4444
teardown: function() {
4545
},
4646

47-
testPlay: function() { with(this) {
47+
testCore: function() { with(this) {
4848
var editor = SeleniumIDE.Loader.getTopEditor();
4949
var testCase = editor.app.getFormats().getDefaultFormat().loadFile("chrome://selenium-ide/content/selenium-tests/tests/"+gup('test'), true);
5050
editor.app.setTestCaseWithNewSuite(testCase);
5151
editor.app.setBaseURL("chrome://selenium-ide/content/selenium-tests/tests/");
5252
var testWindow = editor.showInBrowser("about:blank", true);
5353
var complete = false;
54-
wait(1000, function() {
54+
wait(500, function() {
5555
editor.selDebugger.start(function(failed) {
5656
assert(!failed);
5757
complete = true;

0 commit comments

Comments
 (0)