diff options
Diffstat (limited to 'testing/web-platform/tests/old-tests/webdriver/timeouts/res')
-rw-r--r-- | testing/web-platform/tests/old-tests/webdriver/timeouts/res/implicit_waits_tests.html | 38 | ||||
-rw-r--r-- | testing/web-platform/tests/old-tests/webdriver/timeouts/res/page_load_timeouts_tests.html | 12 |
2 files changed, 50 insertions, 0 deletions
diff --git a/testing/web-platform/tests/old-tests/webdriver/timeouts/res/implicit_waits_tests.html b/testing/web-platform/tests/old-tests/webdriver/timeouts/res/implicit_waits_tests.html new file mode 100644 index 000000000..ce39877fa --- /dev/null +++ b/testing/web-platform/tests/old-tests/webdriver/timeouts/res/implicit_waits_tests.html @@ -0,0 +1,38 @@ +<!DOCTYPE html> +<html> + <head> + <title></title> + <script type="text/javascript"> + var next = 0; + + function addMore() { + var box = document.createElement('DIV'); + box.id = 'box' + next++; + box.className = 'redbox'; + box.style.width = '150px'; + box.style.height = '150px'; + box.style.backgroundColor = 'red'; + box.style.border = '1px solid black'; + box.style.margin = '5px'; + + window.setTimeout(function() { + document.body.appendChild(box); + }, 1000); + } + + function reveal() { + var elem = document.getElementById('revealed'); + window.setTimeout(function() { + elem.style.display = ''; + }, 1000); + } + </script> + </head> + <body> + <input id="adder" type="button" value="Add a box!" onclick="addMore()"/> + + <input id="reveal" type="button" value="Reveal a new input" onclick="reveal();" /> + + <input id="revealed" style="display:none;" /> + </body> +</html>
\ No newline at end of file diff --git a/testing/web-platform/tests/old-tests/webdriver/timeouts/res/page_load_timeouts_tests.html b/testing/web-platform/tests/old-tests/webdriver/timeouts/res/page_load_timeouts_tests.html new file mode 100644 index 000000000..555e19b70 --- /dev/null +++ b/testing/web-platform/tests/old-tests/webdriver/timeouts/res/page_load_timeouts_tests.html @@ -0,0 +1,12 @@ +<!DOCTYPE html> +<html> +<head> + <title>Hello WebDriver</title> +</head> +<body> + <h1>Page Load Timeouts Test</h1> + <div> + Say Cheese + </div> +</body> +</html> |