diff options
Diffstat (limited to 'testing/web-platform/tests/html/obsolete/requirements-for-implementations/other-elements-attributes-and-apis/nothing.html')
-rw-r--r-- | testing/web-platform/tests/html/obsolete/requirements-for-implementations/other-elements-attributes-and-apis/nothing.html | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/testing/web-platform/tests/html/obsolete/requirements-for-implementations/other-elements-attributes-and-apis/nothing.html b/testing/web-platform/tests/html/obsolete/requirements-for-implementations/other-elements-attributes-and-apis/nothing.html new file mode 100644 index 000000000..039495d78 --- /dev/null +++ b/testing/web-platform/tests/html/obsolete/requirements-for-implementations/other-elements-attributes-and-apis/nothing.html @@ -0,0 +1,27 @@ +<!doctype html> +<meta charset=utf-8> +<title>Methods that must do nothing: clear(), captureEvents(), and releaseEvents()</title> +<script src=/resources/testharness.js></script> +<script src=/resources/testharnessreport.js></script> +<div id=log></div> +<script> +test(function() { + assert_equals(document.clear(), undefined); +}, "document.clear"); + +test(function() { + assert_equals(document.captureEvents(), undefined); +}, "document.captureEvents"); + +test(function() { + assert_equals(document.releaseEvents(), undefined); +}, "document.releaseEvents"); + +test(function() { + assert_equals(window.captureEvents(), undefined); +}, "window.captureEvents"); + +test(function() { + assert_equals(window.releaseEvents(), undefined); +}, "window.releaseEvents"); +</script> |