Unreviewed. Update W3C WebDriver imported tests.
[WebKit-https.git] / WebDriverTests / imported / w3c / tools / wptrunner / wptrunner / executors / testharness_webdriver.js
1 window.timeout_multiplier = %(timeout_multiplier)d;
2
3 window.message_queue = [];
4
5 window.setMessageListener = function(func) {
6   window.current_listener = func;
7   window.addEventListener(
8     "message",
9     func,
10     false
11   );
12 };
13
14 window.setMessageListener(function(event) {
15   window.message_queue.push(event);
16 });
17
18 window.win = window.open("%(abs_url)s", "%(window_id)s");
19
20 window.timer = setTimeout(function() {
21   window.win.timeout();
22   window.win.close();
23 }, %(timeout)s);