Bug 1431148 - Add full document screenshot test draft
authorGreg Fraley <gsfraley@gmail.com>
Wed, 21 Mar 2018 15:29:44 -0400
changeset 770754 ce8b2ca3d099c5a69b72db79f4ff7fbbdadd8b36
parent 770153 9e32584fb0b29b6838ba5c5ae594b7e6499aa00f
push id103495
push userbmo:gsfraley@gmail.com
push dateWed, 21 Mar 2018 19:31:13 +0000
bugs1431148
milestone61.0a1
Bug 1431148 - Add full document screenshot test MozReview-Commit-ID: G3ITVTr6Jm
testing/web-platform/mozilla/meta/MANIFEST.json
testing/web-platform/mozilla/tests/webdriver/full_document_screenshot.py
--- a/testing/web-platform/mozilla/meta/MANIFEST.json
+++ b/testing/web-platform/mozilla/meta/MANIFEST.json
@@ -968,16 +968,24 @@
     ]
    ],
    "wasm/unwind.wast.js.html": [
     [
      "/_mozilla/wasm/unwind.wast.js.html",
      {}
     ]
    ]
+  },
+  "wdspec": {
+   "webdriver/full_document_screenshot.py": [
+    [
+     "/_mozilla/webdriver/full_document_screenshot.py",
+     {}
+    ]
+   ]
   }
  },
  "paths": {
   "./placeholder": [
    "74e16eb87ecdfeb2dfc28f36e0c73a584abdf9c2",
    "support"
   ],
   "dom/classList.html": [
@@ -1670,13 +1678,17 @@
   ],
   "wasm/unreached-invalid.wast.js.html": [
    "a7189041a6ab02747c4cd944ec2b2b2a68d60708",
    "testharness"
   ],
   "wasm/unwind.wast.js.html": [
    "de651ab0442bd191626009d1b0aa3cf03130117f",
    "testharness"
+  ],
+  "webdriver/full_document_screenshot.py": [
+   "b3747a5c30543916d206921808c253c785ad9105",
+   "wdspec"
   ]
  },
  "url_base": "/_mozilla/",
  "version": 4
 }
new file mode 100644
--- /dev/null
+++ b/testing/web-platform/mozilla/tests/webdriver/full_document_screenshot.py
@@ -0,0 +1,5 @@
+def take_full_document_screenshot(session):
+    response = session.transport.send("GET", "session/{session_id}/moz/screenshot/full"
+                                      .format(session_id=session.session_id))
+
+    assert response.status == 200, str(response.error)
\ No newline at end of file