Bug 1499135 - ensure 'no browsing context' test in clear.py isn't relying on the previous page runs, r=ato
authorOlli Pettay <Olli.Pettay@helsinki.fi>
Tue, 16 Oct 2018 07:19:31 -0400
changeset 499923 97be1d70d0cd4637a4bd02e984d179b3f1a600e8
parent 499922 085738995db1c63fd00b3ddec8f084190833eb0a
child 499924 180eb0ea89bcf02d511d4e05f493583d125177ea
push id1864
push userffxbld-merge
push dateMon, 03 Dec 2018 15:51:40 +0000
treeherdermozilla-release@f040763d99ad [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersato
bugs1499135
milestone64.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1499135 - ensure 'no browsing context' test in clear.py isn't relying on the previous page runs, r=ato
testing/web-platform/tests/webdriver/tests/element_clear/clear.py
--- a/testing/web-platform/tests/webdriver/tests/element_clear/clear.py
+++ b/testing/web-platform/tests/webdriver/tests/element_clear/clear.py
@@ -1,11 +1,12 @@
 # META: timeout=long
 
 import pytest
+import time
 
 from webdriver import Element
 
 from tests.support.asserts import (
     assert_element_has_focus,
     assert_error,
     assert_events_equal,
     assert_in_events,
@@ -42,17 +43,17 @@ def test_null_response_value(session):
     element = session.find.css("input", all=False)
 
     response = element_clear(session, element)
     value = assert_success(response)
     assert value is None
 
 
 def test_no_browsing_context(session, closed_window):
-    element = Element("foo", session)
+    element = Element("foo" + str(time.time()), session)
 
     response = element_clear(session, element)
     assert_error(response, "no such window")
 
 
 def test_connected_element(session):
     session.url = inline("<input>")
     element = session.find.css("input", all=False)