Skip to content

Commit

Permalink
attempt to solve race condition for yui test
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonahss committed Jul 6, 2016
1 parent 27d49af commit 4018e76
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions examples/yui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
</div>
<script type="text/javascript">
YUI().use('test-console', 'test', 'example-tests', function (Y) {

var TestRunner = Y.Test.Runner;
window.YUITest.TestRunner = TestRunner;

//create the console
var yconsole = new Y.Test.Console({
newestOnTop: false,
Expand Down Expand Up @@ -102,7 +104,6 @@
Y.log(message, messageType, "TestRunner");
}

var TestRunner = Y.Test.Runner;
TestRunner.attach(TestRunner.BEGIN_EVENT, logEvent);
TestRunner.attach(TestRunner.COMPLETE_EVENT, logEvent);
TestRunner.attach(TestRunner.TEST_CASE_BEGIN_EVENT, logEvent);
Expand Down

0 comments on commit 4018e76

Please sign in to comment.