Bug 632636: Initialize cond when we have needs-focus. r=cjones a=bustage
authorMatt Woodrow <mwoodrow@mozilla.com>
Tue, 08 Feb 2011 18:09:00 -0600
changeset 62212 62601280d25dc5c963460b20d45b124ad5bab703
parent 62211 fa1a4b6abff0d357235b6e293dcba6aa1e592262
child 62214 c8d984f57dbd00dc62df36cd5d7f1dd554e491b0
push idunknown
push userunknown
push dateunknown
reviewerscjones, bustage
bugs632636
milestone2.0b12pre
Bug 632636: Initialize cond when we have needs-focus. r=cjones a=bustage
layout/tools/reftest/reftest.js
--- a/layout/tools/reftest/reftest.js
+++ b/layout/tools/reftest/reftest.js
@@ -566,16 +566,17 @@ function ReadManifest(aURL)
                 stat = m[1];
                 // Note: m[2] contains the parentheses, and we want them.
                 cond = Components.utils.evalInSandbox(m[2], sandbox);
             } else if (item.match(/^(fails|random|skip)$/)) {
                 stat = item;
                 cond = true;
             } else if (item == "needs-focus") {
                 needs_focus = true;
+                cond = false;
             } else if ((m = item.match(/^asserts\((\d+)(-\d+)?\)$/))) {
                 cond = false;
                 minAsserts = Number(m[1]);
                 maxAsserts = (m[2] == undefined) ? minAsserts
                                                  : Number(m[2].substring(1));
             } else if ((m = item.match(/^asserts-if\((.*?),(\d+)(-\d+)?\)$/))) {
                 cond = false;
                 if (Components.utils.evalInSandbox("(" + m[1] + ")", sandbox)) {