aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/servo/testing_commands.py2
-rw-r--r--tests/wpt/metadata/html/semantics/embedded-content/the-img-element/Image-constructor.html.ini5
2 files changed, 7 insertions, 0 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py
index b3147e44da8..4f39c702edd 100644
--- a/python/servo/testing_commands.py
+++ b/python/servo/testing_commands.py
@@ -242,6 +242,8 @@ class MachCommands(CommandBase):
os.environ["hosts_file_path"] = hosts_file_path
+ kwargs["debug"] = not kwargs["release"]
+
run_file = path.abspath(path.join("tests", "wpt", "run_wpt.py"))
run_globals = {"__file__": run_file}
execfile(run_file, run_globals)
diff --git a/tests/wpt/metadata/html/semantics/embedded-content/the-img-element/Image-constructor.html.ini b/tests/wpt/metadata/html/semantics/embedded-content/the-img-element/Image-constructor.html.ini
new file mode 100644
index 00000000000..5e8f6e678d8
--- /dev/null
+++ b/tests/wpt/metadata/html/semantics/embedded-content/the-img-element/Image-constructor.html.ini
@@ -0,0 +1,5 @@
+[Image-constructor.html]
+ type: testharness
+ [Image and HTMLImageElement share a prototype]
+ expected:
+ if not debug: FAIL