This commit is contained in:
Fredrik Wollsén 2019-08-15 20:41:09 +03:00
Родитель 48b4ef6feb
Коммит a67dfe6bde
3 изменённых файлов: 6 добавлений и 5 удалений

Просмотреть файл

@ -31,14 +31,13 @@ GETS_AND_SETS = {
METHOD_CALLS = set() # Note 2
TEST_PAGE = ("instrument_existing_window_property_"
"with_partially_existing_attributes.html")
TEST_PAGE = "instrument_existing_window_property.html"
TOP_URL = (
u"%s/js_instrument/%s" % (util.BASE_TEST_URL, TEST_PAGE)
)
class TestJSInstrumentExistingWindowPropertyWithPartiallyExistingAttributes(OpenWPMTest):
class TestJSInstrumentExistingWindowProperty(OpenWPMTest):
def get_config(self, data_dir=""):
manager_params, browser_params = self.get_test_config(data_dir)

Просмотреть файл

@ -12,7 +12,8 @@ GETS_AND_SETS = {
("alreadyInstantiatedMockClassInstance", "get", "{}"),
("alreadyInstantiatedMockClassInstance", "get", "{}"),
("MockClass.nonExistingProp1", "get", "undefined"),
("alreadyInstantiatedMockClassInstance.nonExistingProp1", "get", "undefined"),
("alreadyInstantiatedMockClassInstance.nonExistingProp1",
"get", "undefined"),
("alreadyInstantiatedMockClassInstance", "get", "{}"),
("MockClass.nonExistingProp1", "set", "blah1"),
("alreadyInstantiatedMockClassInstance.nonExistingProp1", "set", "blah1"),
@ -36,7 +37,8 @@ GETS_AND_SETS = {
}
# Note 1: nonExistingMethod1 shows up as a get rather than call
# Note 2: This may be a bug - this new instance should not have a value here yet
# Note 2: This may be a bug - the new instance
# should not have a value here yet
METHOD_CALLS = {
("MockClass", "call", None),