Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Unified Diff: third_party/WebKit/LayoutTests/imported/wpt/html/semantics/forms/resetting-a-form/reset-event.html

Issue 2517743002: Import wpt@5a1f188e0536ad023936cc62f9a00617299dc192 (Closed)
Patch Set: rebased Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/imported/wpt/html/semantics/forms/resetting-a-form/reset-event.html
diff --git a/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/forms/resetting-a-form/reset-event.html b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/forms/resetting-a-form/reset-event.html
new file mode 100644
index 0000000000000000000000000000000000000000..f7d98f721653cd5ed98aa602e367cea635cd5820
--- /dev/null
+++ b/third_party/WebKit/LayoutTests/imported/wpt/html/semantics/forms/resetting-a-form/reset-event.html
@@ -0,0 +1,18 @@
+<!doctype html>
+<title>Test aspects of the reset event</title>
+<script src="/resources/testharness.js"></script>
+<script src="/resources/testharnessreport.js"></script>
+<div id="log"></div>
+<script>
+ async_test((t) => {
+ var form = document.createElement("form")
+ form.onreset = t.step_func_done((e) => {
+ assert_true(e.bubbles)
+ assert_true(e.cancelable)
+ assert_true(e.isTrusted)
+ assert_equals(e.target, form)
+ })
+ form.reset()
+ assert_unreached()
+ })
+</script>

Powered by Google App Engine
This is Rietveld 408576698