[Pkg-mozext-commits] [firebug] 05/56: Fixed test case for issue 3652

David Prévot taffit at moszumanska.debian.org
Wed Nov 19 21:01:41 UTC 2014


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository firebug.

commit 5420fbd7e4eec35121e4262ec0d8daa2a542d0af
Author: Sebastian Zartner <sebastianzartner at gmail.com>
Date:   Wed Sep 10 22:50:17 2014 +0200

    Fixed test case for issue 3652
---
 tests/content/css/3652/issue3652.html | 12 ++++++------
 tests/content/css/3652/issue3652.js   | 19 +++++++++----------
 2 files changed, 15 insertions(+), 16 deletions(-)

diff --git a/tests/content/css/3652/issue3652.html b/tests/content/css/3652/issue3652.html
index 75f0930..b851681 100644
--- a/tests/content/css/3652/issue3652.html
+++ b/tests/content/css/3652/issue3652.html
@@ -29,25 +29,25 @@
                     <li>Select the <em>Style</em> side panel</li>
                     <li>Click on the value <code>green</code> of the CSS property <code>color</code> to open the inline editor</li>
                     <li>
-                        Press <code class="key">R</code><br/>
-                        <span class="ok">⇒ <code>RED</code> should be offered as value</span>
+                        Press <code class="key">Y</code><br/>
+                        <span class="ok">⇒ <code>YELLOW</code> should be offered as value</span>
                     </li>
                     <li>
                         Press <code class="key">Up</code><br/>
-                        <span class="ok">⇒ <code>ROYALBLUE</code> should be offered as value</span>
+                        <span class="ok">⇒ <code>YELLOWGREEN</code> should be offered as value</span>
                     </li>
                     <li>
                         Press <code class="key">Down</code><br/>
-                        <span class="ok">⇒ <code>RED</code> should be offered as value</span>
+                        <span class="ok">⇒ <code>YELLOW</code> should be offered as value</span>
                     </li>
                     <li>Press <code class="key">Home</code></li>
                     <li>
                         Press <code class="key">Up</code><br/>
-                        <span class="ok">⇒ <code>purple</code> (in lowercase) should be offered as value</span>
+                        <span class="ok">⇒ <code>whitesmoke</code> (in lowercase) should be offered as value</span>
                     </li>
                     <li>
                         Press <code class="key">Down</code><br/>
-                        <span class="ok">⇒ <code>red</code> (in lowercase) should be offered as value</span>
+                        <span class="ok">⇒ <code>yellow</code> (in lowercase) should be offered as value</span>
                     </li>
                 </ol>
                 <h3>Expected Result</h3>
diff --git a/tests/content/css/3652/issue3652.js b/tests/content/css/3652/issue3652.js
index 098aebf..a82e9c6 100644
--- a/tests/content/css/3652/issue3652.js
+++ b/tests/content/css/3652/issue3652.js
@@ -16,32 +16,31 @@ function runTest()
 
                 // Type 'r' and verify auto completion.
                 var editor = panel.panelNode.querySelector(".textEditorInner");
-                FBTest.sendChar("R", editor);
-                FBTest.compare("RED", editor.value, "Must be autocompleted to RED.");
+                FBTest.sendChar("Y", editor);
+                FBTest.compare("YELLOW", editor.value, "Must be autocompleted to 'YELLOW'.");
 
                 // Testing up and down arrows covers issue 3671
                 // Type 'arrow-up' and verify completion (should be the previous
                 // color starting with 'r').
                 FBTest.sendKey("UP", editor);
-                FBTest.compare("ROYALBLUE", editor.value, "Must be autocompleted to ROYALBLUE.");
+                FBTest.compare("YELLOWGREEN", editor.value, "Must be autocompleted to 'YELLOWGREEN'.");
 
                 // Type 'arrow-down' and verify completion.
                 FBTest.sendKey("DOWN", editor);
-                FBTest.compare("RED", editor.value, "Must be autocompleted again to RED.");
+                FBTest.compare("YELLOW", editor.value, "Must be autocompleted again to 'YELLOW'.");
 
                 // Type 'home' to move the cursor at the beginning and cancel the selection.
                 // Consequently type 'arrow-up' to get the (global) previous color.
-                // DOM_VK_HOME doesn't work on MAC, press left 3x instead.
-                FBTest.sendKey("LEFT", editor);
-                FBTest.sendKey("LEFT", editor);
-                FBTest.sendKey("LEFT", editor);
+                // DOM_VK_HOME doesn't work on MAC, press left 6x instead.
+                for (var i = 0; i < 6; i++)
+                    FBTest.sendKey("LEFT", editor);
 
                 FBTest.sendKey("UP", editor);
-                FBTest.compare("purple", editor.value, "Must be autocompleted to purple.");
+                FBTest.compare("whitesmoke", editor.value, "Must be autocompleted to 'whitesmoke'.");
 
                 // And again go back to 'red'
                 FBTest.sendKey("DOWN", editor);
-                FBTest.compare("red", editor.value, "Must be autocompleted to red.");
+                FBTest.compare("yellow", editor.value, "Must be autocompleted to 'yellow'.");
 
                 FBTest.testDone();
             });

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/firebug.git



More information about the Pkg-mozext-commits mailing list