From 5f8de423f190bbb79a62f804151bc24824fa32d8 Mon Sep 17 00:00:00 2001 From: "Matt A. Tobin" Date: Fri, 2 Feb 2018 04:16:08 -0500 Subject: Add m-esr52 at 52.6.0 --- .../tests/old-tests/webdriver/screenshot/__init__.py | 1 + .../old-tests/webdriver/screenshot/res/screenshot.html | 5 +++++ .../old-tests/webdriver/screenshot/take_screenshot.py | 15 +++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 testing/web-platform/tests/old-tests/webdriver/screenshot/__init__.py create mode 100644 testing/web-platform/tests/old-tests/webdriver/screenshot/res/screenshot.html create mode 100644 testing/web-platform/tests/old-tests/webdriver/screenshot/take_screenshot.py (limited to 'testing/web-platform/tests/old-tests/webdriver/screenshot') diff --git a/testing/web-platform/tests/old-tests/webdriver/screenshot/__init__.py b/testing/web-platform/tests/old-tests/webdriver/screenshot/__init__.py new file mode 100644 index 000000000..0c8107beb --- /dev/null +++ b/testing/web-platform/tests/old-tests/webdriver/screenshot/__init__.py @@ -0,0 +1 @@ +__author__ = 'b-redeg' diff --git a/testing/web-platform/tests/old-tests/webdriver/screenshot/res/screenshot.html b/testing/web-platform/tests/old-tests/webdriver/screenshot/res/screenshot.html new file mode 100644 index 000000000..057bb9bf5 --- /dev/null +++ b/testing/web-platform/tests/old-tests/webdriver/screenshot/res/screenshot.html @@ -0,0 +1,5 @@ + + +"img" element with not fully qualified url + +  \ No newline at end of file diff --git a/testing/web-platform/tests/old-tests/webdriver/screenshot/take_screenshot.py b/testing/web-platform/tests/old-tests/webdriver/screenshot/take_screenshot.py new file mode 100644 index 000000000..20ff2bff2 --- /dev/null +++ b/testing/web-platform/tests/old-tests/webdriver/screenshot/take_screenshot.py @@ -0,0 +1,15 @@ +import os +import sys +import unittest + +sys.path.insert(1, os.path.abspath(os.path.join(__file__, "../.."))) +import base_test + + +class ScreenShotTest(base_test.WebDriverBaseTest): + # Get a static page that must be the same upon refresh + def test_screenShot(self): + self.driver.get(self.webserver.where_is('screenshot/res/screen.html')) + +if __name__ == '__main__': + unittest.main() -- cgit v1.2.3