Another round of orange fixes, sigh. r=orange yet again

This commit is contained in:
Jeff Walden 2011-01-23 00:12:05 -08:00
parent bfdbd54fa3
commit ca2ed756b9
13 changed files with 27 additions and 27 deletions

View File

@ -880,9 +880,9 @@ var gSyncSetup = {
// if no property string is passed in, we clear label/style
_setFeedback: function (element, success, string) {
element.hidden = success || !string;
let class = success ? "success" : "error";
let classname = success ? "success" : "error";
let image = element.getElementsByAttribute("class", "statusIcon")[0];
image.setAttribute("status", class);
image.setAttribute("status", classname);
let label = element.getElementsByAttribute("class", "status")[0];
label.value = string;
},

View File

@ -703,10 +703,10 @@ Application.prototype = {
get windows() {
var win = [];
var enum = Utilities.windowMediator.getEnumerator("navigator:browser");
var browserEnum = Utilities.windowMediator.getEnumerator("navigator:browser");
while (enum.hasMoreElements())
win.push(new Window(enum.getNext()));
while (browserEnum.hasMoreElements())
win.push(new Window(browserEnum.getNext()));
return win;
},

View File

@ -9,8 +9,8 @@
<!-- test code goes here -->
<script type="application/javascript"><![CDATA[
var imports = [ "SimpleTest", "is", "isnot", "ok", "onerror" ];
for each (var import in imports) {
window[import] = window.opener.wrappedJSObject[import];
for each (var name in imports) {
window[name] = window.opener.wrappedJSObject[name];
}
function $(id) {

View File

@ -9,8 +9,8 @@
<!-- test code goes here -->
<script type="application/javascript"><![CDATA[
var imports = [ "SimpleTest", "is", "isnot", "ok", "onerror" ];
for each (var import in imports) {
window[import] = window.opener.wrappedJSObject[import];
for each (var name in imports) {
window[name] = window.opener.wrappedJSObject[name];
}
function $(id) {

View File

@ -21,8 +21,8 @@
<script type="application/javascript">
<![CDATA[
var imports = [ "SimpleTest", "is", "isnot", "ok" ];
for each (var import in imports) {
window[import] = window.opener.wrappedJSObject[import];
for each (var name in imports) {
window[name] = window.opener.wrappedJSObject[name];
}
function runTests() {

View File

@ -22,8 +22,8 @@
<script type="application/javascript">
<![CDATA[
var imports = [ "SimpleTest", "is", "isnot", "ok", "todo" ];
for each (var import in imports) {
window[import] = window.opener.wrappedJSObject[import];
for each (var name in imports) {
window[name] = window.opener.wrappedJSObject[name];
}
var plugin;

View File

@ -18,8 +18,8 @@
SimpleTest.waitForExplicitFinish();
var imports = [ "SimpleTest", "is", "isnot", "ok" ];
for each (var import in imports) {
window[import] = window.opener.wrappedJSObject[import];
for each (var name in imports) {
window[name] = window.opener.wrappedJSObject[name];
}
function snapshot(win) {

View File

@ -36,8 +36,8 @@
<script type="application/javascript">
var imports = [ "SimpleTest", "is", "isnot", "ok" ];
for each (var import in imports) {
window[import] = window.opener.wrappedJSObject[import];
for each (var name in imports) {
window[name] = window.opener.wrappedJSObject[name];
}
var div = document.getElementById("display");

View File

@ -204,8 +204,8 @@
}
var path = _entityEncode(this.path);
var html = this.results.map(function (t) {
var class = t.info ? "info" : "result " + (t.pass ? "passed" : "failed");
return "<p class=\"" + class + "\">" + t.result + " | " + path +
var classname = t.info ? "info" : "result " + (t.pass ? "passed" : "failed");
return "<p class=\"" + classname + "\">" + t.result + " | " + path +
" | " + _entityEncode(t.msg) + "</p>";
}).join("\n");
if (this.duration) {

View File

@ -55,8 +55,8 @@
var gBrowser;
var imports = ["SimpleTest", "ok"];
for each (var import in imports) {
window[import] = window.opener.wrappedJSObject[import];
for each (var name in imports) {
window[name] = window.opener.wrappedJSObject[name];
}
function finish() {

View File

@ -55,8 +55,8 @@
var gBrowser;
var imports = ["SimpleTest", "ok"];
for each (var import in imports) {
window[import] = window.opener.wrappedJSObject[import];
for each (var name in imports) {
window[name] = window.opener.wrappedJSObject[name];
}
function finish() {

View File

@ -57,8 +57,8 @@
var gBrowser;
var imports = ["SimpleTest", "ok", "snapshotWindow", "compareSnapshots"];
for each (var import in imports) {
window[import] = window.opener.wrappedJSObject[import];
for each (var name in imports) {
window[name] = window.opener.wrappedJSObject[name];
}
function finish() {

View File

@ -62,8 +62,8 @@
}
var imports = [ "SimpleTest", "ok"];
for each (var import in imports) {
window[import] = window.opener.wrappedJSObject[import];
for each (var name in imports) {
window[name] = window.opener.wrappedJSObject[name];
}