mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-01 05:43:46 +00:00
Fix up the tests from bug 555246 to pass in the browser.
--HG-- extra : rebase_source : 7402ef86dc51523e55013345eba02a2e95122478
This commit is contained in:
parent
c3f36f58a1
commit
fc6b177f0b
@ -12,7 +12,7 @@ script regress-551763-0.js
|
||||
script regress-551763-1.js
|
||||
script regress-551763-2.js
|
||||
script regress-555246-0.js
|
||||
fails script regress-555246-1.js
|
||||
script regress-555246-1.js
|
||||
script regress-559438.js
|
||||
script regress-560101.js
|
||||
script regress-560998-1.js
|
||||
|
@ -5,10 +5,10 @@
|
||||
*/
|
||||
|
||||
if (typeof evalcx == 'function') {
|
||||
var cx = evalcx("");
|
||||
evalcx("function f() { return this; }", cx);
|
||||
var f = cx.f;
|
||||
assertEq(f(), cx);
|
||||
var cx = evalcx("");
|
||||
evalcx("function f() { return this; }", cx);
|
||||
var f = cx.f;
|
||||
assertEq(f(), cx);
|
||||
}
|
||||
|
||||
reportCompare(0, 0, "");
|
||||
|
@ -4,9 +4,11 @@
|
||||
* Contributor: Jason Orendorff
|
||||
*/
|
||||
|
||||
assertEq(typeof evalcx, "function", "")
|
||||
var cx = evalcx("");
|
||||
evalcx("function f() { return this; }", cx);
|
||||
f = cx.f;
|
||||
assertEq(f(), cx);
|
||||
if (typeof evalcx == 'function') {
|
||||
var cx = evalcx("");
|
||||
evalcx("function f() { return this; }", cx);
|
||||
f = cx.f;
|
||||
assertEq(f(), cx);
|
||||
}
|
||||
|
||||
reportCompare(0, 0, "");
|
||||
|
Loading…
Reference in New Issue
Block a user