aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/webdriver/command_contexts/window_handle_test.py
diff options
context:
space:
mode:
authorJames Graham <james@hoppipolla.co.uk>2016-03-31 17:56:59 +0100
committerMs2ger <Ms2ger@gmail.com>2016-04-01 13:38:57 +0200
commit78369e95cf7ed0813cb9342747caa4984ae7c527 (patch)
tree21e037d80c4b1f6a03a3efcc9075f819e8ede15b /tests/wpt/web-platform-tests/webdriver/command_contexts/window_handle_test.py
parent9f892edd87441393e5de00790a5abb7fc93a09de (diff)
downloadservo-78369e95cf7ed0813cb9342747caa4984ae7c527.tar.gz
servo-78369e95cf7ed0813cb9342747caa4984ae7c527.zip
Update web-platform-tests to 5582e4d2bfcfd1fa9f105406b143170ee2af7db1
Diffstat (limited to 'tests/wpt/web-platform-tests/webdriver/command_contexts/window_handle_test.py')
-rw-r--r--tests/wpt/web-platform-tests/webdriver/command_contexts/window_handle_test.py33
1 files changed, 0 insertions, 33 deletions
diff --git a/tests/wpt/web-platform-tests/webdriver/command_contexts/window_handle_test.py b/tests/wpt/web-platform-tests/webdriver/command_contexts/window_handle_test.py
deleted file mode 100644
index 6d8e569f049..00000000000
--- a/tests/wpt/web-platform-tests/webdriver/command_contexts/window_handle_test.py
+++ /dev/null
@@ -1,33 +0,0 @@
-import os
-import sys
-import random
-import unittest
-
-sys.path.insert(1, os.path.abspath(os.path.join(__file__, "../..")))
-import base_test
-
-repo_root = os.path.abspath(os.path.join(__file__, "../../.."))
-sys.path.insert(1, os.path.join(repo_root, "tools", "webdriver"))
-from webdriver import exceptions
-
-
-class WindowHandleTest(base_test.WebDriverBaseTest):
- def setUp(self):
- self.driver.get(self.webserver.where_is("command_contexts/res/first-page.html"))
-
- def test_window_handle_is_not_current(self):
- handle = self.driver.get_window_handle()
- self.assertNotEquals(handle, "current")
-
- def test_window_handles_are_unique(self):
- number_of_windows = 20
- new_window_button = self.driver.find_element_by_id("open_new_window")
- for i in range(0, number_of_windows):
- new_window_button.click()
-
- handles = self.driver.get_window_handles()
- if len(handles) > len(set(handles)):
- self.fail('At least one window handle was repeated')
-
-if __name__ == "__main__":
- unittest.main()