aboutsummaryrefslogtreecommitdiffstats
path: root/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed.py
diff options
context:
space:
mode:
authorShiroy <awacheux.utc@gmail.com>2016-03-25 22:32:08 +0100
committerShiroy <awacheux.utc@gmail.com>2016-04-09 09:57:35 +0200
commitee9bb1f3c6534822eeceec8434b38d1e7eee96c1 (patch)
tree3f120534294fa86684f02cb38f64c68e8f9affc7 /tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed.py
parent90ab488d424511e81902b58056602e2b498866ec (diff)
downloadservo-ee9bb1f3c6534822eeceec8434b38d1e7eee96c1.tar.gz
servo-ee9bb1f3c6534822eeceec8434b38d1e7eee96c1.zip
Avoid script execution when not found
Fix #8391
Diffstat (limited to 'tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed.py')
-rw-r--r--tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed.py b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed.py
new file mode 100644
index 00000000000..7722bd3f231
--- /dev/null
+++ b/tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element/script-not-found-not-executed.py
@@ -0,0 +1,4 @@
+def main(request, response):
+ headers = [("Content-Type", "text/javascript")]
+ body = "test1_token = \"script executed\";"
+ return 404, headers, body