adds test for async, uncomments out tests
diff --git a/test/io_test.dart b/test/io_test.dart
index f8c523a..2bd630f 100644
--- a/test/io_test.dart
+++ b/test/io_test.dart
@@ -34,15 +34,15 @@
void main() {
config.config();
- /*alert.runTests();
+ alert.runTests();
command_event.runTests();
keyboard.runTests();
logs.runTests();
mouse.runTests();
navigation.runTests();
options.runTests();
- target_locator.runTests();*/
+ target_locator.runTests();
web_driver.runTests();
- /*web_element.runTests();
- window.runTests();*/
+ web_element.runTests();
+ window.runTests();
}
diff --git a/test/src/web_driver.dart b/test/src/web_driver.dart
index 75e6e4e..f799e36 100644
--- a/test/src/web_driver.dart
+++ b/test/src/web_driver.dart
@@ -60,7 +60,7 @@
tearDown(() => driver.quit());
- /*test('get', () async {
+ test('get', () async {
await driver.get('http://www.google.com/ncr');
await driver.findElement(const By.name('q'));
await driver.get('http://www.yahoo.com');
@@ -190,7 +190,7 @@
var screenshot = await driver.captureScreenshotAsBase64();
expect(screenshot, hasLength(isPositive));
expect(screenshot, new isInstanceOf<String>());
- });*/
+ });
test('future based event listeners work with script timeouts', () async {
driver.addEventListener((WebDriverCommandEvent e) async {
@@ -201,14 +201,14 @@
try {
driver.timeouts.setScriptTimeout(new Duration(seconds: 1));
- var e = await driver.executeAsync('', []);
+ await driver.executeAsync('', []);
fail('Did not throw timeout as expected');
} catch (e) {
expect(e.toString(), contains('asynchronous script timeout'));
}
});
- test('future based event listeners wait appropriately', () async {
+ test('future based event listeners ordered appropriately', () async {
var eventList = new List<int>();
int millisDelay = 2000;
int current = 0;