Bug 1200533 - Fix spellchecker dictionary logic (more test changes). r=smaug
authorJorg K <mozilla@jorgk.com>
Tue, 08 Sep 2015 09:13:00 +0200
changeset 294135 fefcbd37135ba0c26812e225d9b655591135a174
parent 294134 08cd638ca00de2c777cf96e5a849ff5e08c8a83c
child 294136 6e528d940f7132084a9f42a173a89883563e03a9
push id5245
push userraliiev@mozilla.com
push dateThu, 29 Oct 2015 11:30:51 +0000
treeherdermozilla-beta@dac831dc1bd0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerssmaug
bugs1200533
milestone43.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1200533 - Fix spellchecker dictionary logic (more test changes). r=smaug
editor/reftests/338427-1.html
editor/reftests/338427-2-ref.html
editor/reftests/338427-2.html
editor/reftests/338427-3-ref.html
editor/reftests/338427-3.html
--- a/editor/reftests/338427-1.html
+++ b/editor/reftests/338427-1.html
@@ -1,6 +1,7 @@
 <!DOCTYPE html>
 <html>
 <body>
+    <!-- invalid language will default to en-US, but no spell check since element is not focussed -->
     <textarea lang="testing-XX">strangeimpossibleword</textarea>
 </body>
 </html>
--- a/editor/reftests/338427-2-ref.html
+++ b/editor/reftests/338427-2-ref.html
@@ -7,12 +7,13 @@ function init() {
         window.setTimeout(function() {
             document.documentElement.className = '';
         }, 0);
     }, false);
     editor.focus();
 }
 </script>
 <body onload="init()">
-    <div id="editor" lang="testing-XX" contenteditable="true" spellcheck="false">strangeimpossibleword</div>
+    <!-- invalid language will default to en-US -->
+    <div id="editor" lang="testing-XX" contenteditable="true" spellcheck="false">good possible word</div>
 </body>
 </html>
 
--- a/editor/reftests/338427-2.html
+++ b/editor/reftests/338427-2.html
@@ -7,11 +7,12 @@ function init() {
         window.setTimeout(function() {
             document.documentElement.className = '';
         }, 0);
     }, false);
     editor.focus();
 }
 </script>
 <body onload="init()">
-    <div id="editor" lang="testing-XX" contenteditable="true">strangeimpossibleword</div>
+    <!-- invalid language will default to en-US -->
+    <div id="editor" lang="testing-XX" contenteditable="true">good possible word</div>
 </body>
 </html>
--- a/editor/reftests/338427-3-ref.html
+++ b/editor/reftests/338427-3-ref.html
@@ -1,18 +1,19 @@
 <!DOCTYPE html>
 <html class="reftest-wait">
 <script>
 function init() {
     var editor = document.getElementById('editor');
+    // invalid language will default to en-US
     editor.setAttribute('lang', 'testing-XX');
     editor.addEventListener("focus", function() {
         window.setTimeout(function() {
             document.documentElement.className = '';
         }, 0);
     }, false);
     editor.focus();
 }
 </script>
 <body onload="init()">
-    <textarea id="editor" spellcheck="false" lang="en-US">strangeimpossibleword</textarea>
+    <textarea id="editor" spellcheck="false" lang="en-US">good possible word</textarea>
 </body>
 </html>
--- a/editor/reftests/338427-3.html
+++ b/editor/reftests/338427-3.html
@@ -1,18 +1,19 @@
 <!DOCTYPE html>
 <html class="reftest-wait">
 <script>
 function init() {
     var editor = document.getElementById('editor');
+    // invalid language will default to en-US
     editor.setAttribute('lang', 'testing-XX');
     editor.addEventListener("focus", function() {
         window.setTimeout(function() {
             document.documentElement.className = '';
         }, 0);
     }, false);
     editor.focus();
 }
 </script>
 <body onload="init()">
-    <textarea id="editor" lang="en-US">strangeimpossibleword</textarea>
+    <textarea id="editor" lang="en-US">good possible word</textarea>
 </body>
 </html>