mirror of
https://github.com/servo/servo.git
synced 2025-06-24 00:54:32 +01:00
parent
90ab488d42
commit
ee9bb1f3c6
5 changed files with 55 additions and 3 deletions
|
@ -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