mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
parent
90ab488d42
commit
ee9bb1f3c6
5 changed files with 55 additions and 3 deletions
|
@ -40150,6 +40150,14 @@
|
|||
"url": "/webvtt/rendering/cues-with-video/processing-model/too_many_cues_wrapped.html"
|
||||
}
|
||||
]
|
||||
},
|
||||
"testharness": {
|
||||
"html/semantics/scripting-1/the-script-element/script-not-found-not-executed.html": [
|
||||
{
|
||||
"path": "html/semantics/scripting-1/the-script-element/script-not-found-not-executed.html",
|
||||
"url": "/html/semantics/scripting-1/the-script-element/script-not-found-not-executed.html"
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"reftest_nodes": {
|
||||
|
|
|
@ -0,0 +1,4 @@
|
|||
def main(request, response):
|
||||
headers = [("Content-Type", "text/javascript")]
|
||||
body = "test2_token = \"script executed\";"
|
||||
return 200, headers, body
|
|
@ -0,0 +1,19 @@
|
|||
<!doctype html>
|
||||
<meta charset="utf-8">
|
||||
<title></title>
|
||||
<script src="/resources/testharness.js"></script>
|
||||
<script src="/resources/testharnessreport.js"></script>
|
||||
<script>var test1_token = "script not executed";</script>
|
||||
<script src="script-not-found-not-executed.py"></script>
|
||||
<script>
|
||||
test(function(){
|
||||
assert_equals(test1_token, "script not executed");
|
||||
}, "Script that 404");
|
||||
</script>
|
||||
<script>var test2_token = "script not executed";</script>
|
||||
<script src="script-not-found-not-executed-2.py"></script>
|
||||
<script>
|
||||
test(function(){
|
||||
assert_equals(test2_token, "script executed");
|
||||
}, "Script that does not 404");
|
||||
</script>
|
|
@ -0,0 +1,4 @@
|
|||
def main(request, response):
|
||||
headers = [("Content-Type", "text/javascript")]
|
||||
body = "test1_token = \"script executed\";"
|
||||
return 404, headers, body
|
Loading…
Add table
Add a link
Reference in a new issue