mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Add test.
This commit is contained in:
parent
29a7405b4e
commit
4bf9bece92
1 changed files with 11 additions and 0 deletions
11
src/test/html/content/test_exception.html
Normal file
11
src/test/html/content/test_exception.html
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!doctype html>
|
||||
<script src="harness.js"></script>
|
||||
<script>
|
||||
try {
|
||||
document.createElement("1foo");
|
||||
is(true, false, "No exception thrown");
|
||||
} catch (e) {
|
||||
is(true, true, "Exception caught");
|
||||
}
|
||||
finish();
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue