Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add a HOST_FILE env variable and fix the wdspec setup errors that it …
…causes
  • Loading branch information
georgeroman committed Jul 20, 2019
1 parent 5788e8c commit 1c4a35e
Show file tree
Hide file tree
Showing 20 changed files with 5 additions and 230 deletions.
2 changes: 1 addition & 1 deletion python/servo/testing_commands.py
Expand Up @@ -396,7 +396,7 @@ def test_wpt_android(self, release=False, dev=False, binary_args=None, **kwargs)
def _test_wpt(self, android=False, **kwargs):
self.set_run_env(android)
hosts_file_path = path.join(self.context.topdir, 'tests', 'wpt', 'hosts')
os.environ["hosts_file_path"] = hosts_file_path
os.environ["HOST_FILE"] = hosts_file_path
run_file = path.abspath(path.join(self.context.topdir, "tests", "wpt", "run.py"))
return self.wptrunner(run_file, **kwargs)

Expand Down
@@ -1,7 +1,2 @@
[delete.py]
[test_null_response_value]
expected: FAIL

[test_dismissed_beforeunload_prompt]
expected: FAIL

disabled: Triggers setup errors in other tests
@@ -1,7 +1,4 @@
[scroll_into_view.py]
[test_element_outside_of_not_scrollable_viewport]
expected: FAIL

[test_option_select_container_outside_of_scrollable_viewport]
expected: FAIL

Expand Down
@@ -1,28 +1,4 @@
[send_keys.py]
[test_invalid_text_type[value4\]]
expected: FAIL

[test_invalid_text_type[None\]]
expected: FAIL

[test_null_response_value]
expected: FAIL

[test_invalid_text_type[value3\]]
expected: FAIL

[test_invalid_text_type[1\]]
expected: FAIL

[test_null_parameter_value]
expected: FAIL

[test_stale_element]
expected: FAIL

[test_no_browsing_context]
expected: ERROR

[test_invalid_text_type[True\]]
expected: FAIL

Expand Up @@ -2,12 +2,3 @@
[test_idl_attribute_element]
expected: FAIL

[test_script_defining_property]
expected: FAIL

[test_content_attribute]
expected: FAIL

[test_idl_attribute]
expected: FAIL

Expand Up @@ -59,12 +59,6 @@
[test_find_element_partial_link_text[<a href=#>PARTIAL LINK TEXT</a>-LINK\]]
expected: FAIL

[test_null_parameter_value]
expected: FAIL

[test_find_element[css selector-#linkText\]]
expected: FAIL

[test_find_element_partial_link_text[<a href=#>partial link text</a>-k t\]]
expected: FAIL

Expand Down
3 changes: 0 additions & 3 deletions tests/wpt/metadata/webdriver/tests/find_elements/find.py.ini
Expand Up @@ -5,9 +5,6 @@
[test_find_elements_link_text[<a href=#>LINK TEXT</a>-LINK TEXT\]]
expected: FAIL

[test_find_elements[css selector-#linkText\]]
expected: FAIL

[test_htmldocument[tag name-html\]]
expected: FAIL

Expand Down
@@ -1,19 +1,16 @@
[find.py]
[test_xhtml_namespace[css selector-#linkText\]]
expected: FAIL

[test_find_elements_link_text[<a href=#>LINK TEXT</a>-LINK TEXT\]]
expected: FAIL

[test_find_elements[css selector-#linkText\]]
expected: FAIL

[test_find_elements_link_text[<a href=#>link text</a>-link text\]]
expected: FAIL

[test_xhtml_namespace[xpath-//*[name()='a'\]\]]
expected: FAIL

[test_xhtml_namespace[css selector-#linkText\]]
expected: FAIL

[test_find_elements[link text-full link text\]]
expected: FAIL

Expand Down Expand Up @@ -50,9 +47,6 @@
[test_no_element[css selector-#wontExist\]]
expected: FAIL

[test_null_parameter_value]
expected: FAIL

[test_find_elements_partial_link_text[<a href=#>partial link&amp;text</a>-k&t\]]
expected: FAIL

Expand Down
Expand Up @@ -35,9 +35,6 @@
[test_boolean_attribute[audio-attrs0\]]
expected: FAIL

[test_element_stale]
expected: FAIL

[test_normal]
expected: FAIL

Expand Down
@@ -1,16 +1,7 @@
[get.py]
[test_property_name_not_existent]
expected: FAIL

[test_element_not_found]
expected: FAIL

[test_element_stale]
expected: FAIL

[test_property_name_value]
expected: FAIL

[test_no_browsing_context]
expected: ERROR

Expand Up @@ -2,12 +2,6 @@
[test_element_not_found]
expected: FAIL

[test_element_stale]
expected: FAIL

[test_no_browsing_context]
expected: ERROR

[test_basic]
expected: FAIL

Expand Up @@ -2,9 +2,6 @@
[test_element_not_found]
expected: FAIL

[test_element_stale]
expected: FAIL

[test_no_browsing_context]
expected: ERROR

Expand Down
Expand Up @@ -5,6 +5,3 @@
[test_no_browsing_context]
expected: ERROR

[test_read_element_text]
expected: FAIL

Expand Up @@ -2,9 +2,6 @@
[test_no_browsing_context]
expected: ERROR

[test_duplicated_cookie]
expected: FAIL

[test_get_named_cookie]
expected: FAIL

102 changes: 0 additions & 102 deletions tests/wpt/metadata/webdriver/tests/is_element_enabled/enabled.py.ini
@@ -1,106 +1,4 @@
[enabled.py]
[test_xhtml_form_control_enabled[input\]]
expected: FAIL

[test_fieldset_enabled_descendant[button\]]
expected: FAIL

[test_fieldset_enabled_descendant_legend[input\]]
expected: FAIL

[test_xhtml_form_control_enabled[textarea\]]
expected: FAIL

[test_form_control_disabled[textarea\]]
expected: FAIL

[test_fieldset_disabled_descendant_legend[button\]]
expected: FAIL

[test_xhtml_form_control_disabled[button\]]
expected: FAIL

[test_form_control_enabled[select\]]
expected: FAIL

[test_xhtml_form_control_disabled[textarea\]]
expected: FAIL

[test_xhtml_form_control_disabled[select\]]
expected: FAIL

[test_fieldset_disabled_descendant_legend[select\]]
expected: FAIL

[test_fieldset_disabled_descendant[input\]]
expected: FAIL

[test_xhtml_form_control_enabled[select\]]
expected: FAIL

[test_form_control_disabled[select\]]
expected: FAIL

[test_form_control_enabled[input\]]
expected: FAIL

[test_fieldset_disabled_descendant_legend[input\]]
expected: FAIL

[test_form_control_enabled[button\]]
expected: FAIL

[test_xml_always_not_enabled]
expected: FAIL

[test_fieldset_enabled_descendant[select\]]
expected: FAIL

[test_fieldset_disabled_descendant_legend[textarea\]]
expected: FAIL

[test_fieldset_enabled_descendant[textarea\]]
expected: FAIL

[test_element_stale]
expected: FAIL

[test_fieldset_enabled_descendant[input\]]
expected: FAIL

[test_form_control_enabled[textarea\]]
expected: FAIL

[test_form_control_disabled[button\]]
expected: FAIL

[test_fieldset_disabled_descendant[select\]]
expected: FAIL

[test_fieldset_disabled_descendant[button\]]
expected: FAIL

[test_xhtml_form_control_enabled[button\]]
expected: FAIL

[test_form_control_disabled[input\]]
expected: FAIL

[test_fieldset_enabled_descendant_legend[button\]]
expected: FAIL

[test_fieldset_enabled_descendant_legend[textarea\]]
expected: FAIL

[test_fieldset_disabled_descendant[textarea\]]
expected: FAIL

[test_fieldset_enabled_descendant_legend[select\]]
expected: FAIL

[test_no_browsing_context]
expected: ERROR

[test_xhtml_form_control_disabled[input\]]
expected: FAIL

@@ -1,19 +1,4 @@
[selected.py]
[test_checkbox_not_selected]
expected: FAIL

[test_element_stale]
expected: FAIL

[test_element_selected]
expected: FAIL

[test_element_checked]
expected: FAIL

[test_element_not_selected]
expected: FAIL

[test_no_browsing_context]
expected: ERROR

3 changes: 0 additions & 3 deletions tests/wpt/metadata/webdriver/tests/set_window_rect/set.py.ini
Expand Up @@ -41,6 +41,3 @@
[test_height_width_larger_than_max]
expected: FAIL

[test_negative_x_y]
expected: FAIL

This file was deleted.

Expand Up @@ -5,15 +5,9 @@
[test_frame_id_webelement_frame[1-bar\]]
expected: FAIL

[test_frame_id_webelement_iframe[1-bar\]]
expected: FAIL

[test_frame_id_webelement_frame[0-foo\]]
expected: FAIL

[test_frame_id_webelement_iframe[0-foo\]]
expected: FAIL

[test_frame_id_webelement_no_element_reference]
expected: FAIL

Expand All @@ -23,9 +17,6 @@
[test_frame_id_number_index[0-foo\]]
expected: FAIL

[test_frame_id_null]
expected: FAIL

[test_frame_id_webelement_stale_reference]
expected: FAIL

Expand Down
@@ -1,10 +1,4 @@
[switch.py]
[test_null_response_value]
expected: FAIL

[test_no_browsing_context]
expected: ERROR

[test_stale_element_from_iframe]
expected: FAIL

0 comments on commit 1c4a35e

Please sign in to comment.