diff options
Diffstat (limited to 'tests/wpt/web-platform-tests/webdriver/navigation/forwardToNothing.py')
m--------- | tests/wpt/web-platform-tests | 0 | ||||
-rw-r--r-- | tests/wpt/web-platform-tests/webdriver/navigation/forwardToNothing.py | 20 |
2 files changed, 20 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests b/tests/wpt/web-platform-tests deleted file mode 160000 -Subproject 29dfb8944e535d439ca94cf7d1b1d9138a8ad11 diff --git a/tests/wpt/web-platform-tests/webdriver/navigation/forwardToNothing.py b/tests/wpt/web-platform-tests/webdriver/navigation/forwardToNothing.py new file mode 100644 index 00000000000..057fb9c5828 --- /dev/null +++ b/tests/wpt/web-platform-tests/webdriver/navigation/forwardToNothing.py @@ -0,0 +1,20 @@ +import os +import sys +import unittest + +sys.path.insert(1, os.path.abspath(os.path.join(__file__, "../.."))) +import base_test + + +class ForwardToNothingTest(base_test.WebDriverBaseTest): + # Get a static page that must be the same upon refresh + def test_forwardToNothing(self): + self.driver.get(self.webserver.where_is('navigation/forwardStart.html')) + body = self.driver.find_element_by_css("body").text + self.driver.go_forward() + currbody = self.driver.find_element_by_css("body").text + self.assertEqual(body, currbody) + + +if __name__ == '__main__': + unittest.main() |