mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 839053 - Part c: Add a test for HTMLLinkElement attributes reflection; r=bz
--HG-- rename : content/html/content/test/test_li_attributes_reflection.html => content/html/content/test/test_link_attributes_reflection.html
This commit is contained in:
parent
e21a8a0da7
commit
70df75e865
@ -257,6 +257,7 @@ MOCHITEST_FILES = \
|
||||
file_fullscreen-rollback.html \
|
||||
file_fullscreen-svg-element.html \
|
||||
test_li_attributes_reflection.html \
|
||||
test_link_attributes_reflection.html \
|
||||
test_ol_attributes_reflection.html \
|
||||
test_dl_attributes_reflection.html \
|
||||
test_ul_attributes_reflection.html \
|
||||
@ -274,7 +275,6 @@ MOCHITEST_FILES = \
|
||||
test_input_file_picker.html \
|
||||
test_bug763626.html \
|
||||
test_bug780993.html \
|
||||
test_bug786564.html \
|
||||
test_bug797113.html \
|
||||
test_bug787134.html \
|
||||
test_bug803677.html \
|
||||
|
@ -59,7 +59,6 @@ function reflectString(aParameters)
|
||||
var todoAttrs = {
|
||||
form: [ "acceptCharset", "name", "target" ],
|
||||
input: [ "accept", "alt", "formTarget", "max", "min", "name", "pattern", "placeholder", "step", "defaultValue" ],
|
||||
link: [ "crossOrigin" ],
|
||||
textarea: [ "name", "placeholder" ]
|
||||
};
|
||||
if (!(element.localName in todoAttrs) || todoAttrs[element.localName].indexOf(idlAttr) == -1) {
|
||||
|
@ -1,35 +0,0 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<!--
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=786564
|
||||
-->
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Test for Bug 742549</title>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="application/javascript" src="reflect.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=786564">Mozilla Bug 786564</a>
|
||||
<p id="display"></p>
|
||||
<div id="content" style="display: none">
|
||||
|
||||
</div>
|
||||
<pre id="test">
|
||||
<script type="application/javascript">
|
||||
|
||||
/** Test for Bug 786564 **/
|
||||
reflectString({
|
||||
element: document.createElement("link"),
|
||||
attribute: { content: "crossorigin", idl: "crossOrigin" },
|
||||
otherValues: [ "anonymous", "use-credentials" ]
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
@ -0,0 +1,77 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<title>Test for HTMLLinkElement attributes reflection</title>
|
||||
<script type="application/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<script type="application/javascript" src="reflect.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css"/>
|
||||
</head>
|
||||
<body>
|
||||
<p id="display"></p>
|
||||
<div id="content" style="display: none">
|
||||
</div>
|
||||
<pre id="test">
|
||||
<script type="application/javascript">
|
||||
|
||||
/** Test for HTMLLinkElement attributes reflection **/
|
||||
|
||||
// .href (URL)
|
||||
reflectURL({
|
||||
element: document.createElement("link"),
|
||||
attribute: "href",
|
||||
});
|
||||
|
||||
// .crossOrigin (String)
|
||||
reflectString({
|
||||
element: document.createElement("link"),
|
||||
attribute: "crossOrigin",
|
||||
otherValues: ["anonymous", "use-credentials"],
|
||||
});
|
||||
|
||||
// .rel (String)
|
||||
reflectString({
|
||||
element: document.createElement("link"),
|
||||
attribute: "rel",
|
||||
});
|
||||
|
||||
// .media (String)
|
||||
reflectString({
|
||||
element: document.createElement("link"),
|
||||
attribute: "media",
|
||||
});
|
||||
|
||||
// .hreflang (String)
|
||||
reflectString({
|
||||
element: document.createElement("link"),
|
||||
attribute: "hreflang",
|
||||
});
|
||||
|
||||
// .type (String)
|
||||
reflectString({
|
||||
element: document.createElement("link"),
|
||||
attribute: "type",
|
||||
});
|
||||
|
||||
|
||||
// .charset (String)
|
||||
reflectString({
|
||||
element: document.createElement("link"),
|
||||
attribute: "charset",
|
||||
});
|
||||
|
||||
// .rev (String)
|
||||
reflectString({
|
||||
element: document.createElement("link"),
|
||||
attribute: "rev",
|
||||
});
|
||||
|
||||
// .target (String)
|
||||
reflectString({
|
||||
element: document.createElement("link"),
|
||||
attribute: "target",
|
||||
});
|
||||
|
||||
</script>
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user