summaryrefslogtreecommitdiffstats
path: root/layout/reftests/forms/placeholder/placeholder-19.xul
diff options
context:
space:
mode:
Diffstat (limited to 'layout/reftests/forms/placeholder/placeholder-19.xul')
-rw-r--r--layout/reftests/forms/placeholder/placeholder-19.xul23
1 files changed, 23 insertions, 0 deletions
diff --git a/layout/reftests/forms/placeholder/placeholder-19.xul b/layout/reftests/forms/placeholder/placeholder-19.xul
new file mode 100644
index 000000000..e176e0f9b
--- /dev/null
+++ b/layout/reftests/forms/placeholder/placeholder-19.xul
@@ -0,0 +1,23 @@
+<?xml version="1.0"?> <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
+<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
+ class="reftest-wait">
+ <script type="text/javascript"><![CDATA[
+ window.addEventListener("load", function() {
+ var x = document.getElementById("x");
+ x.value = "val";
+ x.focus();x.blur();
+ setTimeout(function() {
+ x.value = "";
+ x.hidden = true;
+ setTimeout(function() {
+ x.value = "value";
+ x.hidden = false;
+ x.focus();x.blur();
+ document.documentElement.removeAttribute("class");
+ }, 0);
+ }, 0);
+ }, false);
+ ]]></script>
+ <textbox id="x" placeholder="placeholder"/>
+</window>
+