Index: SimpleTestHarness/sth.js =================================================================== --- SimpleTestHarness/sth.js (revision 58934) +++ SimpleTestHarness/sth.js (working copy) @@ -108,7 +108,7 @@ pres = true; if (pre !== undefined) { try { - pres = pre.call(ut.testObj); + pres = pre.call(ut.thisObj); restoreGlobals(); if (pres !== true) { ut.res = 'Precondition failed'; @@ -124,7 +124,7 @@ // if the prereq is met, run the testcase now. if (pres === true) { try { - res = ut.theTestcase.call(ut.testObj); + res = ut.theTestcase.call(ut.thisObj); restoreGlobals(); if (res === true) { ut.res = 'pass'; @@ -276,10 +276,12 @@ this.resultsDiv = null } +var _globalThis = this; function sth_test(to, path) { //Create a sth_test from a test definition object, and path //TODO: Update sth framework to work more directly with test definitiion objects. this.testObj = to; + this.thisObj = to.globalThis === true ? _globalThis : to; this.description = to.description; this.theTestcase = to.test; this.path = path; @@ -349,4 +351,4 @@ } return true; -} \ No newline at end of file +} Index: TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-178.js =================================================================== --- TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-178.js (revision 58934) +++ TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-178.js (working copy) @@ -41,5 +41,7 @@ precondition: function prereq() { return fnExists(Object.getOwnPropertyDescriptor); - } + }, + +globalThis: true }); Index: TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-12.js =================================================================== --- TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-12.js (revision 58934) +++ TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-12.js (working copy) @@ -43,5 +43,7 @@ precondition: function prereq() { return fnExists(Object.getOwnPropertyDescriptor); - } + }, + +globalThis: true }); Index: TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-6.js =================================================================== --- TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-6.js (revision 58934) +++ TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-6.js (working copy) @@ -43,5 +43,7 @@ precondition: function prereq() { return fnExists(Object.getOwnPropertyDescriptor); - } + }, + +globalThis: true }); Index: TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-9.js =================================================================== --- TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-9.js (revision 58934) +++ TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-9.js (working copy) @@ -38,5 +38,7 @@ precondition: function prereq() { return fnExists(Object.getOwnPropertyDescriptor); - } + }, + +globalThis: true }); Index: TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-179.js =================================================================== --- TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-179.js (revision 58934) +++ TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-179.js (working copy) @@ -41,5 +41,7 @@ precondition: function prereq() { return fnExists(Object.getOwnPropertyDescriptor); - } + }, + +globalThis: true }); Index: TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-10.js =================================================================== --- TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-10.js (revision 58934) +++ TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-10.js (working copy) @@ -43,5 +43,7 @@ precondition: function prereq() { return fnExists(Object.getOwnPropertyDescriptor); - } + }, + +globalThis: true }); Index: TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-4.js =================================================================== --- TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-4.js (revision 58934) +++ TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-4.js (working copy) @@ -43,5 +43,7 @@ precondition: function prereq() { return fnExists(Object.getOwnPropertyDescriptor); - } + }, + +globalThis: true }); Index: TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-180.js =================================================================== --- TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-180.js (revision 58934) +++ TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-180.js (working copy) @@ -41,5 +41,7 @@ precondition: function prereq() { return fnExists(Object.getOwnPropertyDescriptor); - } + }, + +globalThis: true }); Index: TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-13.js =================================================================== --- TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-13.js (revision 58934) +++ TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-13.js (working copy) @@ -43,5 +43,7 @@ precondition: function prereq() { return fnExists(Object.getOwnPropertyDescriptor); - } + }, + +globalThis: true }); Index: TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-11.js =================================================================== --- TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-11.js (revision 58934) +++ TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-11.js (working copy) @@ -43,5 +43,7 @@ precondition: function prereq() { return fnExists(Object.getOwnPropertyDescriptor); - } + }, + +globalThis: true }); Index: TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-5.js =================================================================== --- TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-5.js (revision 58934) +++ TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-5.js (working copy) @@ -43,5 +43,7 @@ precondition: function prereq() { return fnExists(Object.getOwnPropertyDescriptor); - } + }, + +globalThis: true }); Index: TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-181.js =================================================================== --- TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-181.js (revision 58934) +++ TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-181.js (working copy) @@ -41,5 +41,7 @@ precondition: function prereq() { return fnExists(Object.getOwnPropertyDescriptor); - } + }, + +globalThis: true }); Index: TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-8.js =================================================================== --- TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-8.js (revision 58934) +++ TestCases/chapter15/15.2/15.2.3/15.2.3.3/15.2.3.3-4-8.js (working copy) @@ -43,5 +43,7 @@ precondition: function prereq() { return fnExists(Object.getOwnPropertyDescriptor); - } + }, + +globalThis: true });