Bug 1479351 [wpt PR 12223] - Remove html onshow tests, a=testonly

Automatic update from web-platform-testsRemove html onshow tests (#12223)

--

wpt-commits: ae6368e7b8fafc7acdd9b6c0d8a31bda95f72c68
wpt-pr: 12223
This commit is contained in:
kaixinjxq 2018-07-30 15:18:42 +00:00 коммит произвёл moz-wptsync-bot
Родитель 38c21de2cd
Коммит 47c3011aa8
5 изменённых файлов: 5 добавлений и 25 удалений

Просмотреть файл

@ -585231,7 +585231,7 @@
"testharness"
],
"html/browsers/the-window-object/security-window/window-security.https.html": [
"912601488f513e878b49693a3edab92662bc318e",
"1fb0ed7c1e62da55b890c6434bee6e46637e0209",
"testharness"
],
"html/browsers/the-window-object/support/noopener-target.html": [
@ -585283,7 +585283,7 @@
"testharness"
],
"html/browsers/the-window-object/window-properties.https.html": [
"5ad6335c82adfd19d346dd9e9c3db6acafe9b8ec",
"603f98326c2f779fd3e623c7d3edc5390cc6a225",
"testharness"
],
"html/browsers/the-window-object/window-prototype-chain.html": [
@ -595671,7 +595671,7 @@
"testharness"
],
"html/semantics/forms/the-button-element/button-events.html": [
"9d308bbed3cc615fdec65aa42deac3a8a83347e9",
"4d924e4aa39e217ae227cc38a2fea1daaece8811",
"testharness"
],
"html/semantics/forms/the-button-element/button-labels.html": [
@ -631511,7 +631511,7 @@
"support"
],
"svg/interfaces.html": [
"698e6e7d414224b2e45857b6eb95f5353ae34907",
"6527288311206f192a763d6bf459bd4124e67e28",
"testharness"
],
"svg/linking/reftests/href-a-element-attr-change.html": [

Просмотреть файл

@ -96,7 +96,6 @@ function fr_load() {
{name: "onseeked"},
{name: "onseeking"},
{name: "onselect"},
{name: "onshow"},
{name: "onstalled"},
{name: "onstorage"},
{name: "onsubmit"},

Просмотреть файл

@ -181,7 +181,6 @@ var writableAttributes = [
"onseeked",
"onseeking",
"onselect",
"onshow",
"onstalled",
"onstorage",
"onsubmit",

Просмотреть файл

@ -9,17 +9,13 @@
<form name="fm1" style="display:none">
<button id="btn">BUTTON</button>
<button id="menu_btn" type="menu" menu="menu">MENU BUTTON</button>
<menu id="menu" label="MENU">
<li>Menu item</li>
</menu>
</form>
<script>
var btn = document.getElementById("btn"),
menu_btn = document.getElementById("menu_btn"),
t1 = async_test("The submit event must be fired when click a button in submit status"),
t2 = async_test("The reset event must be fired when click a button in reset status"),
t3 = async_test("The show event must be fired when click a button in menu status");
t2 = async_test("The reset event must be fired when click a button in reset status");
document.forms.fm1.onsubmit = t1.step_func(function (evt) {
evt.preventDefault();
@ -38,14 +34,6 @@ document.forms.fm1.onreset = t2.step_func(function (evt) {
t2.done();
});
document.getElementById("menu").onshow = t3.step_func(function (evt) {
assert_true(evt.isTrusted, "The isTrusted attribute of the show event should be true.");
assert_equals(evt.relatedTarget, menu_btn, "The relatedTarget attribute should be initialized to the related button element.");
assert_true(evt.cancelable, "The cancelable attribute of the show event should be true.");
assert_true(evt instanceof RelatedEvent, "The show event is an instance of RelatedEvent interface.");
t3.done();
});
t1.step(function () {
btn.type = "submit";
assert_equals(btn.type, "submit", "The button type should be 'submit'.");
@ -58,9 +46,4 @@ t2.step(function () {
btn.click();
});
t3.step(function () {
assert_equals(menu_btn.type, "menu", "The button type should be 'menu'.");
menu_btn.click();
});
</script>

Просмотреть файл

@ -86,7 +86,6 @@ interface GlobalEventHandlers {
attribute EventHandler onseeked;
attribute EventHandler onseeking;
attribute EventHandler onselect;
attribute EventHandler onshow;
attribute EventHandler onsort;
attribute EventHandler onstalled;
attribute EventHandler onsubmit;