mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 02:40:22 -10:00
More orange-fixing. r=yellowish-red
This commit is contained in:
1 parent
bab5242f52
commit
1418315269
5 files changed
+11
-11
No files matched your search
@@ -15,8 +15,8 @@
|
||||
<script type="application/javascript"><![CDATA[
|
||||
var imports = [ "SimpleTest", "is", "isnot", "ok", "snapshotWindow",
|
||||
"compareSnapshots", "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) {
|
||||
|
||||
@@ -47,8 +47,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];
|
||||
}
|
||||
|
||||
const text="MOZILLA";
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
*/
|
||||
var imports = [ "SimpleTest", "is", "isnot", "ok", "onerror", "todo",
|
||||
"todo_is", "todo_isnot" ];
|
||||
for each (var import in imports) {
|
||||
window[import] = window.opener.wrappedJSObject[import];
|
||||
for each (var name in imports) {
|
||||
window[name] = window.opener.wrappedJSObject[name];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -9,7 +9,7 @@ var ua = navigator.userAgent;
|
||||
if (/Windows/.test(ua)) {
|
||||
id = "win";
|
||||
if (/NT 5\.1/.test(ua) || /NT 5\.2; Win64/.test(ua))
|
||||
var class = "winxp";
|
||||
var classname = "winxp";
|
||||
}
|
||||
else if (/Linux/.test(ua))
|
||||
id = "linux";
|
||||
@@ -24,5 +24,5 @@ else
|
||||
document.documentElement.appendChild(
|
||||
document.createTextNode("Unrecognized platform")
|
||||
);
|
||||
if (class)
|
||||
document.documentElement.setAttribute("class", class);
|
||||
if (classname)
|
||||
document.documentElement.setAttribute("class", classname);
|
||||
@@ -82,12 +82,12 @@ function do_check_throws(f, type, stack)
|
||||
do_throw("expected " + type.name + " exception, none thrown", stack);
|
||||
}
|
||||
|
||||
function do_check_class(obj, class, stack)
|
||||
function do_check_class(obj, classname, stack)
|
||||
{
|
||||
if (!stack)
|
||||
stack = Components.stack.caller;
|
||||
|
||||
do_check_eq(Object.prototype.toString.call(obj), "[object " + class + "]", stack);
|
||||
do_check_eq(Object.prototype.toString.call(obj), "[object " + classname + "]", stack);
|
||||
}
|
||||
|
||||
function run_test()
|
||||
|
||||
Reference in new issue
Block a user