Skip to content
This repository was archived by the owner on Apr 14, 2021. It is now read-only.

Commit c384a2d

Browse files
committed
Make tests use locale sensitive prototype functions
1 parent 90c17df commit c384a2d

File tree

112 files changed

+114
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+114
-0
lines changed

tests/build-pages.js

+3
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ var LIBS = {
1717
' return __globalObject;',
1818
'}',
1919

20+
// Make sure polyfilled ECMA-262 functions are in place for the tests
21+
'IntlPolyfill.__applyLocaleSensitivePrototypes();',
22+
2023
'function runTheTest() {'
2124
].join('\n'),
2225

tests/test262/pages/ch06/6.2/6.2.2_a.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch06/6.2/6.2.2_b.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch06/6.2/6.2.2_c.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch06/6.2/6.2.3.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch06/6.2/6.2.4.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch06/6.3/6.3.1_a.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
Array.prototype.forEach = Array.prototype.forEach || function (fn) {
89
for (var i=0; i < this.length; i++)

tests/test262/pages/ch06/6.3/6.3.1_b.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
Array.prototype.forEach = Array.prototype.forEach || function (fn) {
89
for (var i=0; i < this.length; i++)

tests/test262/pages/ch06/6.4/6.4_a.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
Array.prototype.forEach = Array.prototype.forEach || function (fn) {
89
for (var i=0; i < this.length; i++)

tests/test262/pages/ch06/6.4/6.4_b.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
Array.prototype.forEach = Array.prototype.forEach || function (fn) {
89
for (var i=0; i < this.length; i++)

tests/test262/pages/ch06/6.4/6.4_c.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
Object.getOwnPropertyNames = Object.getOwnPropertyNames || function (obj) {
89
var ret = [];

tests/test262/pages/ch08/8.0/8.0.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
Object.getPrototypeOf = Object.getPrototypeOf || function (obj) { return obj.constructor.prototype; };
89
// Copyright 2013 Mozilla Corporation. All rights reserved.

tests/test262/pages/ch08/8.0/8.0_L15.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
Object.getPrototypeOf = Object.getPrototypeOf || function (obj) { return obj.constructor.prototype; };
89
Object.isExtensible = Object.isExtensible || function () { return true; };

tests/test262/pages/ch09/9.1/9.1_a.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch09/9.1/9.1_b.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch09/9.2/9.2.1_1.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch09/9.2/9.2.1_2.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch09/9.2/9.2.1_3.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch09/9.2/9.2.1_4.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch09/9.2/9.2.1_8_c_ii.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch09/9.2/9.2.1_8_c_vi.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch09/9.2/9.2.2.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch09/9.2/9.2.3_5.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch09/9.2/9.2.5_6.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch09/9.2/9.2.6_2.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch09/9.2/9.2.6_4.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch09/9.2/9.2.6_4_b.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch09/9.2/9.2.6_4_c.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch09/9.2/9.2.8_1_c.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch09/9.2/9.2.8_4.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch11/11.1/11.1.1_1.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch11/11.1/11.1.1_15.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch11/11.1/11.1.1_17.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
Array.prototype.forEach = Array.prototype.forEach || function (fn) {
89
for (var i=0; i < this.length; i++)

tests/test262/pages/ch11/11.1/11.1.1_19.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78

89
// Copyright 2012 Mozilla Corporation. All rights reserved.

tests/test262/pages/ch11/11.1/11.1.1_20_c.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
Object.getOwnPropertyNames = Object.getOwnPropertyNames || function (obj) {
89
var ret = [];

tests/test262/pages/ch11/11.1/11.1.1_21.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch11/11.1/11.1.1_32.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch11/11.1/11.1.1_34.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch11/11.1/11.1.1_6.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch11/11.1/11.1.1_7.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch11/11.1/11.1.1_a.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch11/11.1/11.1.2.1_4.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
Array.prototype.forEach = Array.prototype.forEach || function (fn) {
89
for (var i=0; i < this.length; i++)

tests/test262/pages/ch11/11.1/11.1.2.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

tests/test262/pages/ch11/11.1/11.1.3.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
Object.getPrototypeOf = Object.getPrototypeOf || function (obj) { return obj.constructor.prototype; };
89
Object.isExtensible = Object.isExtensible || function () { return true; };

tests/test262/pages/ch11/11.1/11.1_L15.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
Object.getPrototypeOf = Object.getPrototypeOf || function (obj) { return obj.constructor.prototype; };
89
Object.isExtensible = Object.isExtensible || function () { return true; };

tests/test262/pages/ch11/11.2/11.2.1.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78

89
// Copyright 2012 Mozilla Corporation. All rights reserved.

tests/test262/pages/ch11/11.2/11.2.2_L15.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
Object.getPrototypeOf = Object.getPrototypeOf || function (obj) { return obj.constructor.prototype; };
89
Object.isExtensible = Object.isExtensible || function () { return true; };

tests/test262/pages/ch11/11.2/11.2.2_a.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78

89
// Copyright 2012 Google Inc. All rights reserved.

tests/test262/pages/ch11/11.2/11.2.2_b.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
function fnGlobalObject() {
44
return __globalObject;
55
}
6+
IntlPolyfill.__applyLocaleSensitivePrototypes();
67
function runTheTest() {
78
try { Object.defineProperty({}, "a", {}) } catch (e) { Object.defineProperty = function (obj, name, desc) {
89
if (desc.hasOwnProperty('value'))

0 commit comments

Comments
 (0)