| Index: tests/html/window_open_test.dart
|
| ===================================================================
|
| --- tests/html/window_open_test.dart (revision 7823)
|
| +++ tests/html/window_open_test.dart (working copy)
|
| @@ -12,11 +12,11 @@
|
| evaluateJavaScript('layoutTestController.setCanOpenWindows()');
|
|
|
| useHtmlConfiguration();
|
| - asyncTest('TwoArgumentVersion', 1, () {
|
| + test('TwoArgumentVersion', () {
|
| Window win = window.open('../resources/pong.html', 'testWindow');
|
| closeWindow(win);
|
| });
|
| - asyncTest('ThreeArgumentVersion', 1, () {
|
| + test('ThreeArgumentVersion', () {
|
| Window win = window.open("resources/pong.html", "testWindow", "scrollbars=yes,width=75,height=100");
|
| closeWindow(win);
|
| });
|
| @@ -25,7 +25,9 @@
|
| closeWindow(win) {
|
| win.close();
|
| doneHandler() {
|
| - window.setTimeout(win.closed ? callbackDone : doneHandler, 1);
|
| + if (!win.closed) {
|
| + window.setTimeout(expectAsync0(doneHandler), 1);
|
| + }
|
| }
|
| - window.setTimeout(doneHandler, 1);
|
| + window.setTimeout(expectAsync0(doneHandler), 1);
|
| }
|
|
|