| Index: LayoutTests/imported/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-runtime-error.html
|
| diff --git a/LayoutTests/imported/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-runtime-error.html b/LayoutTests/imported/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-runtime-error.html
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fb7ea5839fe97a89c964612e219d2bb62c6a9a24
|
| --- /dev/null
|
| +++ b/LayoutTests/imported/web-platform-tests/html/webappapis/scripting/processing-model-2/body-onerror-runtime-error.html
|
| @@ -0,0 +1,39 @@
|
| +<!doctype html>
|
| +<html>
|
| + <head>
|
| + <title><body onerror> - runtime error in <script></title>
|
| + <script src="../../../../../../resources/testharness.js"></script>
|
| + <script src="../../../../../../resources/testharnessreport.js"></script>
|
| + </head>
|
| + <script>
|
| + setup({allow_uncaught_exception:true});
|
| + var t = async_test();
|
| + var t_col = async_test(document.title+' (column)');
|
| + var ran = false;
|
| + </script>
|
| + <body onerror="
|
| + t.step(function(){
|
| + ran = true;
|
| + assert_equals(typeof event, 'string', 'first arg');
|
| + assert_equals(source, location.href, 'second arg');
|
| + assert_equals(typeof lineno, 'number', 'third arg');
|
| + });
|
| + t_col.step(function(){
|
| + assert_equals(typeof column, 'number', 'fourth arg');
|
| + });
|
| + ">
|
| + <div id=log></div>
|
| + <script>
|
| + undefined_variable;
|
| + </script>
|
| + <script>
|
| + t.step(function(){
|
| + assert_true(ran, 'ran');
|
| + t.done();
|
| + });
|
| + t_col.step(function(){
|
| + t_col.done();
|
| + });
|
| + </script>
|
| + </body>
|
| +</html>
|
|
|