Created
June 26, 2012 10:39
-
-
Save chrisbu/2994941 to your computer and use it in GitHub Desktop.
Async test with dart:html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import('dart:html'); | |
#import("lib/unittest/unittest.dart"); | |
#import("lib/unittest/html_config.dart"); | |
void main() { | |
useHtmlConfiguration(); | |
test('aync test', () { | |
window.setTimeout(expectAsync0(() { | |
print("timout occurred"); | |
}), 1000); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
two times #import('dart:html');?