import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo

This commit is contained in:
Roy Tam 2018-01-19 03:59:58 +08:00
commit dcd9973243
150858 changed files with 23884658 additions and 0 deletions

View file

@ -0,0 +1,34 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>Cloning of textarea elements</title>
<link rel="help" href="https://dom.spec.whatwg.org/#dom-node-clonenode">
<link rel="help" href="https://dom.spec.whatwg.org/#concept-node-clone">
<link rel="help" href="https://dom.spec.whatwg.org/#concept-node-clone-ext">
<link rel="help" href="https://html.spec.whatwg.org/multipage/forms.html#the-textarea-element:concept-node-clone-ext">
<link rel="author" title="Domenic Denicola" href="mailto:d@domenic.me">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
"use strict";
test(function() {
var textarea = document.createElement("textarea");
textarea.value = "foo bar";
var copy = textarea.cloneNode();
assert_equals(copy.value, "foo bar");
}, "textarea element's value should be cloned");
test(function() {
var textarea = document.createElement("textarea");
textarea.value = "foo bar";
var copy = textarea.cloneNode();
copy.setAttribute("value", "something else");
assert_equals(copy.value, "foo bar");
}, "textarea element's dirty value flag should be cloned, so setAttribute doesn't affect the cloned textarea's value");
</script>

View file

@ -0,0 +1,19 @@
<!DOCTYPE html>
<html>
<head>
<title>HTML Test reference: newline in &lt;textarea&gt; separates bidi paragraphs</title>
<link rel="author" title="Amir E. Aharoni" href="mailto:amir.aharoni@mail.huji.ac.il"/>
<link rel="author" title="Eyal Sela" href="mailto:eyal@post.isoc.org.il"/>
<link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com"/>
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-textarea-element"/>
</head>
<body>
<div class="instructions"><p>Test passes if the rightmost character in the first line below is a full stop and to the left of it is a Hebrew letter.</p></div>
<div class="test">
<textarea cols="70" rows="3">
A Hebrew letter and a full stop: &#x05d0;.&lrm;
&#x05d0; this line begins with a Hebrew letter.
</textarea>
</div>
</body>
</html>

View file

@ -0,0 +1,23 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8"/>
<title>HTML Test: newline in &lt;textarea&gt; separates bidi paragraphs</title>
<link rel="match" href="textarea-newline-bidi-ref.html" />
<link rel="author" title="Amir E. Aharoni" href="mailto:amir.aharoni@mail.huji.ac.il"/>
<link rel="author" title="Eyal Sela" href="mailto:eyal@post.isoc.org.il"/>
<link rel="author" title="Aharon Lanin" href="mailto:aharon@google.com"/>
<link rel="help" href="https://html.spec.whatwg.org/multipage/#the-textarea-element"/>
<meta name="assert"
content="A newline in a textarea element, and in its raw value, should separate paragraphs for the purposes of the Unicode bidirectional algorithm."/>
</head>
<body>
<div class="instructions"><p>Test passes if the rightmost character in the first line below is a full stop and to the left of it is a Hebrew letter.</p></div>
<div class="test">
<textarea cols="70" rows="3">
A Hebrew letter and a full stop: &#x05d0;.
&#x05d0; this line begins with a Hebrew letter.
</textarea>
</div>
</body>
</html>

View file

@ -0,0 +1,14 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>HTML Test: textarea - placeholder attribute</title>
<link rel="author" title="Intel" href="http://www.intel.com">
<link rel="help" href="https://html.spec.whatwg.org/multipage/#attr-textarea-placeholder">
<meta name="flags" content="interact">
<body>
<p>
Test passes if there is a "Placeholder Text" in the text area,
and if the "Placeholder Text" disappears after type in any character.
</p>
<textarea placeholder="Placeholder Text"></textarea>
</body>

View file

@ -0,0 +1,31 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>HTMLTextAreaElement Test: select event</title>
<link rel="author" title="Intel" href="http://www.intel.com/">
<meta name="flags" content="interact">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<p>Select any numberic characters in the text area below</p>
<form id="testForm" name="testForm">
<textarea id="testtextarea">0123456789</textarea>
</form>
<script>
var textarea = document.getElementById("testtextarea");
setup({explicit_done : true});
setup({explicit_timeout : true});
on_event(textarea, "select", function(evt) {
test(function() {
assert_greater_than(textarea.value.substring(textarea.selectionStart, textarea.selectionEnd).length, 0, "Check if select event captured when text selected");
});
done();
});
</script>
<div id="log"></div>

View file

@ -0,0 +1,13 @@
<!DOCTYPE html>
<meta charset="utf-8">
<title>HTMLTextAreaElement Test: select()</title>
<link rel="author" title="Intel" href="http://www.intel.com/">
<meta name="flags" content="interact">
<p>Test passes if content of the input area is selected</p>
<textarea id="test_obj">1234567</textarea>
<script>
var textarea = document.querySelector("#test_obj");
textarea.select();
</script>

View file

@ -0,0 +1,16 @@
<!DOCTYPE HTML>
<title>The type IDL attribute</title>
<link rel="author" title="Ms2ger" href="mailto:ms2ger@gmail.com">
<link rel="help" href="https://html.spec.whatwg.org/multipage/#dom-textarea-type">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<div id="test">
<textarea></textarea>
</div>
<script>
test(function() {
assert_equals(document.getElementById("test")
.getElementsByTagName("textarea")[0].type,
"textarea");
}, "Textarea's type attribute should return 'textarea'");
</script>

View file

@ -0,0 +1,5 @@
<!DOCTYPE html>
<title>Dynamic manipulation of textarea.wrap</title>
<link rel=help href=https://html.spec.whatwg.org/multipage/#dom-textarea-wrap>
<link rel=author title=Ms2ger href=mailto:ms2ger@gmail.com>
<textarea wrap=soft cols=20>01234567890 01234567890 01234567890</textarea>

View file

@ -0,0 +1,9 @@
<!DOCTYPE html>
<title>Dynamic manipulation of textarea.wrap</title>
<link rel=match href=wrap-reflect-1-ref.html>
<link rel=help href=https://html.spec.whatwg.org/multipage/#dom-textarea-wrap>
<link rel=author title=Ms2ger href=mailto:ms2ger@gmail.com>
<textarea wrap=off cols=20>01234567890 01234567890 01234567890</textarea>
<script>
document.getElementsByTagName("textarea")[0].wrap = "soft";
</script>

View file

@ -0,0 +1,9 @@
<!DOCTYPE html>
<title>Dynamic manipulation of textarea.wrap</title>
<link rel=match href=wrap-reflect-1-ref.html>
<link rel=help href=https://html.spec.whatwg.org/multipage/#dom-textarea-wrap>
<link rel=author title=Ms2ger href=mailto:ms2ger@gmail.com>
<textarea wrap=off cols=20>01234567890 01234567890 01234567890</textarea>
<script>
document.getElementsByTagName("textarea")[0].setAttribute("wrap", "soft");
</script>