mirror of https://github.com/tc39/test262.git
Latest set of external contributions from IE Test Center. Compared to test\suite\ietestcenter:
- 26 test case modifications. Most of these involved replacing instances 'window' with the global object - removal of 47 test cases. The bulk of these were dependent upon 'window' methods or properties such as 'document' and 'alert' - addition of 1,234 new test cases. These cover the following ES5.1 sections: chapter07\7.6\7.6.1 chapter07\7.8\7.8.5 chapter11\11.8\11.8.2 chapter11\11.8\11.8.3 chapter12\12.6\12.6.3 chapter12\12.6\12.6.4 chapter12\12.7 chapter12\12.8 chapter12\12.9 chapter13\13.2 chapter15\15.10\15.10.2 chapter15\15.10\15.10.4 chapter15\15.10\15.10.6\15.10.6.2 chapter15\15.11\15.11.4\15.11.4.4 chapter15\15.1\15.1.1\15.1.1.1 chapter15\15.1\15.1.1\15.1.1.2 chapter15\15.1\15.1.1\15.1.1.3 chapter15\15.1\15.1.2\15.1.2.2 chapter15\15.1\15.1.2\15.1.2.3 chapter15\15.2\15.2.4\15.2.4.2 chapter15\15.3\15.3.4\15.3.4.5.1 chapter15\15.3\15.3.4\15.3.4.5.2 chapter15\15.4\15.4.4\15.4.4.10 chapter15\15.4\15.4.4\15.4.4.12 chapter15\15.4\15.4.4\15.4.4.4 chapter15\15.9\15.9.1\15.9.1.15
This commit is contained in:
parent
2c0f0a557b
commit
d3f3cf97d7
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-1.js
vendored
Normal file
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-1.js
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-1-1",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-1-1.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, verified with hasOwnProperty: null, true, false",
|
||||
|
||||
test: function testcase(){
|
||||
var tokenCodes = {
|
||||
null: 0,
|
||||
true: 1,
|
||||
false: 2
|
||||
};
|
||||
var arr = [
|
||||
'null',
|
||||
'true',
|
||||
'false'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-10.js
vendored
Normal file
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-10.js
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-1-10",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-1-10.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, verified with hasOwnProperty: in, try, class",
|
||||
|
||||
test: function testcase(){
|
||||
var tokenCodes = {
|
||||
in: 0,
|
||||
try: 1,
|
||||
class: 2
|
||||
};
|
||||
var arr = [
|
||||
'in',
|
||||
'try',
|
||||
'class'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-11.js
vendored
Normal file
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-11.js
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-1-11",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-1-11.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, verified with hasOwnProperty: enum, extends, super",
|
||||
|
||||
test: function testcase(){
|
||||
var tokenCodes = {
|
||||
enum: 0,
|
||||
extends: 1,
|
||||
super: 2
|
||||
};
|
||||
var arr = [
|
||||
'enum',
|
||||
'extends',
|
||||
'super'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-12.js
vendored
Normal file
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-12.js
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-1-12",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-1-12.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, verified with hasOwnProperty: const, export, import",
|
||||
|
||||
test: function testcase(){
|
||||
var tokenCodes = {
|
||||
const: 0,
|
||||
export: 1,
|
||||
import: 2
|
||||
};
|
||||
var arr = [
|
||||
'const',
|
||||
'export',
|
||||
'import'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-13.js
vendored
Normal file
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-13.js
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-1-13",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-1-13.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, verified with hasOwnProperty: implements, let, private",
|
||||
|
||||
test: function testcase(){
|
||||
var tokenCodes = {
|
||||
implements: 0,
|
||||
let: 1,
|
||||
private: 2
|
||||
};
|
||||
var arr = [
|
||||
'implements',
|
||||
'let',
|
||||
'private'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-14.js
vendored
Normal file
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-14.js
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-1-14",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-1-14.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, verified with hasOwnProperty: public, yield, interface",
|
||||
|
||||
test: function testcase(){
|
||||
var tokenCodes = {
|
||||
public: 0,
|
||||
yield: 1,
|
||||
interface: 2
|
||||
};
|
||||
var arr = [
|
||||
'public',
|
||||
'yield',
|
||||
'interface'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-15.js
vendored
Normal file
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-15.js
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-1-15",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-1-15.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, verified with hasOwnProperty: package, protected, static",
|
||||
|
||||
test: function testcase(){
|
||||
var tokenCodes = {
|
||||
package: 0,
|
||||
protected: 1,
|
||||
static: 2
|
||||
};
|
||||
var arr = [
|
||||
'package',
|
||||
'protected',
|
||||
'static'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-16.js
vendored
Normal file
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-16.js
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-1-16",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-1-16.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, verified with hasOwnProperty: undeefined, NaN, Infinity",
|
||||
|
||||
test: function testcase(){
|
||||
var tokenCodes = {
|
||||
undefined: 0,
|
||||
NaN: 1,
|
||||
Infinity: 2
|
||||
};
|
||||
var arr = [
|
||||
'undefined',
|
||||
'NaN',
|
||||
'Infinity'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-2.js
vendored
Normal file
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-2.js
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-1-2",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-1-2.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, verified with hasOwnProperty: break, case, do",
|
||||
|
||||
test: function testcase(){
|
||||
var tokenCodes = {
|
||||
break: 0,
|
||||
case: 1,
|
||||
do: 2
|
||||
};
|
||||
var arr = [
|
||||
'break',
|
||||
'case',
|
||||
'do'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-3.js
vendored
Normal file
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-3.js
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-1-3",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-1-3.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, verified with hasOwnProperty: instanceof, typeof, else",
|
||||
|
||||
test: function testcase(){
|
||||
var tokenCodes = {
|
||||
instanceof: 0,
|
||||
typeof: 1,
|
||||
else: 2
|
||||
};
|
||||
var arr = [
|
||||
'instanceof',
|
||||
'typeof',
|
||||
'else'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-4.js
vendored
Normal file
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-4.js
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-1-4",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-1-4.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, verified with hasOwnProperty: new, var, catch",
|
||||
|
||||
test: function testcase(){
|
||||
var tokenCodes = {
|
||||
new: 0,
|
||||
var: 1,
|
||||
catch: 2
|
||||
};
|
||||
var arr = [
|
||||
'new',
|
||||
'var',
|
||||
'catch'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-5.js
vendored
Normal file
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-5.js
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-1-5",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-1-5.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, verified with hasOwnProperty: finally, return, void",
|
||||
|
||||
test: function testcase(){
|
||||
var tokenCodes = {
|
||||
finally: 0,
|
||||
return: 1,
|
||||
void: 2
|
||||
};
|
||||
var arr = [
|
||||
'finally',
|
||||
'return',
|
||||
'void'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-6.js
vendored
Normal file
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-6.js
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-1-6",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-1-6.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, verified with hasOwnProperty: continue, for, switch",
|
||||
|
||||
test: function testcase(){
|
||||
var tokenCodes = {
|
||||
continue: 0,
|
||||
for: 1,
|
||||
switch: 2
|
||||
};
|
||||
var arr = [
|
||||
'continue',
|
||||
'for',
|
||||
'switch'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-7.js
vendored
Normal file
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-7.js
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-1-7",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-1-7.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, verified with hasOwnProperty: while, debugger, function",
|
||||
|
||||
test: function testcase(){
|
||||
var tokenCodes = {
|
||||
while: 0,
|
||||
debugger: 1,
|
||||
function: 2
|
||||
};
|
||||
var arr = [
|
||||
'while' ,
|
||||
'debugger',
|
||||
'function'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-8.js
vendored
Normal file
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-8.js
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-1-8",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-1-8.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, verified with hasOwnProperty: this, with, default",
|
||||
|
||||
test: function testcase(){
|
||||
var tokenCodes = {
|
||||
this: 0,
|
||||
with: 1,
|
||||
default: 2
|
||||
};
|
||||
var arr = [
|
||||
'this',
|
||||
'with',
|
||||
'default'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-9.js
vendored
Normal file
54
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-1-9.js
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-1-9",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-1-9.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, verified with hasOwnProperty: if, throw, delete",
|
||||
|
||||
test: function testcase(){
|
||||
var tokenCodes = {
|
||||
if: 0,
|
||||
throw: 1,
|
||||
delete: 2
|
||||
};
|
||||
var arr = [
|
||||
'if',
|
||||
'throw',
|
||||
'delete'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-1.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-1.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-2-1",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-2-1.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, verified with hasOwnProperty: null, true, false",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.null = 0;
|
||||
tokenCodes.true = 1;
|
||||
tokenCodes.false = 2;
|
||||
var arr = [
|
||||
'null',
|
||||
'true',
|
||||
'false'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-10.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-10.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-2-10",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-2-10.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, verified with hasOwnProperty: in, try, class",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.in = 0;
|
||||
tokenCodes.try = 1;
|
||||
tokenCodes.class = 2;
|
||||
var arr = [
|
||||
'in',
|
||||
'try',
|
||||
'class'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-11.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-11.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-2-11",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-2-11.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, verified with hasOwnProperty: enum, extends, super",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.enum = 0;
|
||||
tokenCodes.extends = 1;
|
||||
tokenCodes.super = 2;
|
||||
var arr = [
|
||||
'enum',
|
||||
'extends',
|
||||
'super'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-12.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-12.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-2-12",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-2-12.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, verified with hasOwnProperty: const, export, import",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.const = 0;
|
||||
tokenCodes.export = 1;
|
||||
tokenCodes.import = 2;
|
||||
var arr = [
|
||||
'const',
|
||||
'export',
|
||||
'import'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-13.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-13.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-2-13",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-2-13.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, verified with hasOwnProperty: implements, let, private",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.implements = 0;
|
||||
tokenCodes.let = 1;
|
||||
tokenCodes.private = 2;
|
||||
var arr = [
|
||||
'implements',
|
||||
'let',
|
||||
'private'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-14.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-14.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-2-14",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-2-14.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, verified with hasOwnProperty: public, yield, interface",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.public = 0;
|
||||
tokenCodes.yield = 1;
|
||||
tokenCodes.interface = 2;
|
||||
var arr = [
|
||||
'public',
|
||||
'yield',
|
||||
'interface'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-15.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-15.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-2-15",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-2-15.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, verified with hasOwnProperty: package, protected, static",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.package = 0;
|
||||
tokenCodes.protected = 1;
|
||||
tokenCodes.static = 2;
|
||||
var arr = [
|
||||
'package',
|
||||
'protected',
|
||||
'static'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-16.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-16.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-2-16",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-2-16.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, verified with hasOwnProperty: undefined, NaN, Infinity",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.undefined = 0;
|
||||
tokenCodes.NaN = 1;
|
||||
tokenCodes.Infinity = 2;
|
||||
var arr = [
|
||||
'undefined',
|
||||
'NaN',
|
||||
'Infinity'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-2.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-2.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-2-2",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-2-2.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, verified with hasOwnProperty: break, case, do",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.break = 0;
|
||||
tokenCodes.case = 1;
|
||||
tokenCodes.do = 2;
|
||||
var arr = [
|
||||
'break',
|
||||
'case',
|
||||
'do'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-3.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-3.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-2-3",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-2-3.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, verified with hasOwnProperty: instanceof, typeof, else",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.instanceof = 0;
|
||||
tokenCodes.typeof = 1;
|
||||
tokenCodes.else = 2;
|
||||
var arr = [
|
||||
'instanceof',
|
||||
'typeof',
|
||||
'else'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-4.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-4.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-2-4",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-2-4.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, verified with hasOwnProperty: new, var, catch",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.new = 0;
|
||||
tokenCodes.var = 1;
|
||||
tokenCodes.catch = 2;
|
||||
var arr = [
|
||||
'new',
|
||||
'var',
|
||||
'catch'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-5.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-5.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-2-5",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-2-5.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, verified with hasOwnProperty: finally, return, void",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.finally = 0;
|
||||
tokenCodes.return = 1;
|
||||
tokenCodes.void = 2;
|
||||
var arr = [
|
||||
'finally',
|
||||
'return',
|
||||
'void'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-6.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-6.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-2-6",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-2-6.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, verified with hasOwnProperty: continue, for, switch",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.continue = 0;
|
||||
tokenCodes.for = 1;
|
||||
tokenCodes.switch = 2;
|
||||
var arr = [
|
||||
'continue',
|
||||
'for',
|
||||
'switch'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-7.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-7.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-2-7",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-2-7.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, verified with hasOwnProperty: while, debugger, function",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.while = 0;
|
||||
tokenCodes.debugger = 1;
|
||||
tokenCodes.function = 2;
|
||||
var arr = [
|
||||
'while' ,
|
||||
'debugger',
|
||||
'function'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-8.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-8.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-2-8",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-2-8.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, verified with hasOwnProperty: this, with, default",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.this = 0;
|
||||
tokenCodes.with = 1;
|
||||
tokenCodes.default = 2;
|
||||
var arr = [
|
||||
'this',
|
||||
'with',
|
||||
'default'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-9.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-2-9.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-2-9",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-2-9.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, verified with hasOwnProperty: if, throw, delete",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.if = 0;
|
||||
tokenCodes.throw = 1;
|
||||
tokenCodes.delete = 2;
|
||||
var arr = [
|
||||
'if',
|
||||
'throw',
|
||||
'delete'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-1.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-1.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-3-1",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-3-1.js",
|
||||
|
||||
description: "Allow reserved words as property names by index assignment,verified with hasOwnProperty: null, true, false",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes['null'] = 0;
|
||||
tokenCodes['true'] = 1;
|
||||
tokenCodes['false'] = 2;
|
||||
var arr = [
|
||||
'null',
|
||||
'true',
|
||||
'false'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-10.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-10.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-3-10",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-3-10.js",
|
||||
|
||||
description: "Allow reserved words as property names by index assignment,verified with hasOwnProperty: in, try, class",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes['in'] = 0;
|
||||
tokenCodes['try'] = 1;
|
||||
tokenCodes['class'] = 2;
|
||||
var arr = [
|
||||
'in',
|
||||
'try',
|
||||
'class'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-11.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-11.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-3-11",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-3-11.js",
|
||||
|
||||
description: "Allow reserved words as property names by index assignment,verified with hasOwnProperty: enum, extends, super",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes['enum'] = 0;
|
||||
tokenCodes['extends'] = 1;
|
||||
tokenCodes['super'] = 2;
|
||||
var arr = [
|
||||
'enum',
|
||||
'extends',
|
||||
'super'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-12.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-12.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-3-12",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-3-12.js",
|
||||
|
||||
description: "Allow reserved words as property names by index assignment,verified with hasOwnProperty: const, export, import",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes['const'] = 0;
|
||||
tokenCodes['export'] = 1;
|
||||
tokenCodes['import'] = 2;
|
||||
var arr = [
|
||||
'const',
|
||||
'export',
|
||||
'import'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-13.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-13.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-3-13",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-3-13.js",
|
||||
|
||||
description: "Allow reserved words as property names by index assignment,verified with hasOwnProperty: implements, let, private",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes['implements'] = 0;
|
||||
tokenCodes['let'] = 1;
|
||||
tokenCodes['private'] = 2;
|
||||
var arr = [
|
||||
'implements',
|
||||
'let',
|
||||
'private'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-14.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-14.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-3-14",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-3-14.js",
|
||||
|
||||
description: "Allow reserved words as property names by index assignment,verified with hasOwnProperty: public, yield, interface",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes['public'] = 0;
|
||||
tokenCodes['yield'] = 1;
|
||||
tokenCodes['interface'] = 2;
|
||||
var arr = [
|
||||
'public',
|
||||
'yield',
|
||||
'interface'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-15.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-15.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-3-15",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-3-15.js",
|
||||
|
||||
description: "Allow reserved words as property names by index assignment,verified with hasOwnProperty: package, protected, static",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes['package'] = 0;
|
||||
tokenCodes['protected'] = 1;
|
||||
tokenCodes['static'] = 2;
|
||||
var arr = [
|
||||
'package',
|
||||
'protected',
|
||||
'static'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-16.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-16.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-3-16",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-3-16.js",
|
||||
|
||||
description: "Allow reserved words as property names by index assignment,verified with hasOwnProperty: undefined, NaN, Infinity",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes['undefined'] = 0;
|
||||
tokenCodes['NaN'] = 1;
|
||||
tokenCodes['Infinity'] = 2;
|
||||
var arr = [
|
||||
'undefined',
|
||||
'NaN',
|
||||
'Infinity'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-2.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-2.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-3-2",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-3-2.js",
|
||||
|
||||
description: "Allow reserved words as property names by index assignment,verified with hasOwnProperty: break, case, do",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes['break'] = 0;
|
||||
tokenCodes['case'] = 1;
|
||||
tokenCodes['do'] = 2;
|
||||
var arr = [
|
||||
'break',
|
||||
'case',
|
||||
'do'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-3.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-3.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-3-3",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-3-3.js",
|
||||
|
||||
description: "Allow reserved words as property names by index assignment,verified with hasOwnProperty: instanceof, typeof, else",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes['instanceof'] = 0;
|
||||
tokenCodes['typeof'] = 1;
|
||||
tokenCodes['else'] = 2;
|
||||
var arr = [
|
||||
'instanceof',
|
||||
'typeof',
|
||||
'else'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-4.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-4.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-3-4",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-3-4.js",
|
||||
|
||||
description: "Allow reserved words as property names by index assignment,verified with hasOwnProperty: new, var, catch",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes['new'] = 0;
|
||||
tokenCodes['var'] = 1;
|
||||
tokenCodes['catch'] = 2;
|
||||
var arr = [
|
||||
'new',
|
||||
'var',
|
||||
'catch'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-5.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-5.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-3-5",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-3-5.js",
|
||||
|
||||
description: "Allow reserved words as property names by index assignment,verified with hasOwnProperty: finally, return, void",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes['finally'] = 0;
|
||||
tokenCodes['return'] = 1;
|
||||
tokenCodes['void'] = 2;
|
||||
var arr = [
|
||||
'finally',
|
||||
'return',
|
||||
'void'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-6.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-6.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-3-6",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-3-6.js",
|
||||
|
||||
description: "Allow reserved words as property names by index assignment,verified with hasOwnProperty: continue, for, switch",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes['continue'] = 0;
|
||||
tokenCodes['for'] = 1;
|
||||
tokenCodes['switch'] = 2;
|
||||
var arr = [
|
||||
'continue',
|
||||
'for',
|
||||
'switch'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-7.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-7.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-3-7",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-3-7.js",
|
||||
|
||||
description: "Allow reserved words as property names by index assignment,verified with hasOwnProperty: while, debugger, function",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes['while'] = 0;
|
||||
tokenCodes['debugger'] = 1;
|
||||
tokenCodes['function'] = 2;
|
||||
var arr = [
|
||||
'while',
|
||||
'debugger',
|
||||
'function'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-8.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-8.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-3-8",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-3-8.js",
|
||||
|
||||
description: "Allow reserved words as property names by index assignment,verified with hasOwnProperty: this, with, default",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes['this'] = 0;
|
||||
tokenCodes['with'] = 1;
|
||||
tokenCodes['default'] = 2;
|
||||
var arr = [
|
||||
'this',
|
||||
'with',
|
||||
'default'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-9.js
vendored
Normal file
53
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-3-9.js
vendored
Normal file
|
@ -0,0 +1,53 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-3-9",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-3-9.js",
|
||||
|
||||
description: "Allow reserved words as property names by index assignment,verified with hasOwnProperty: if, throw, delete",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes['if'] = 0;
|
||||
tokenCodes['throw'] = 1;
|
||||
tokenCodes['delete'] = 2;
|
||||
var arr = [
|
||||
'if',
|
||||
'throw',
|
||||
'delete'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-1.js
vendored
Normal file
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-1.js
vendored
Normal file
|
@ -0,0 +1,70 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-4-1",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-4-1.js",
|
||||
|
||||
description: "Allow reserved words as property names by set function within an object, verified with hasOwnProperty: null, true, false",
|
||||
|
||||
test: function testcase() {
|
||||
var test0 = 0, test1 = 1, test2 = 2;
|
||||
var tokenCodes = {
|
||||
set null(value) {
|
||||
test0 = value;
|
||||
},
|
||||
get null() {
|
||||
return test0;
|
||||
},
|
||||
set true(value) {
|
||||
test1 = value;
|
||||
},
|
||||
get true() {
|
||||
return test1;
|
||||
},
|
||||
set false(value) {
|
||||
test2 = value;
|
||||
},
|
||||
get false(){
|
||||
return test2;
|
||||
}
|
||||
};
|
||||
var arr = [
|
||||
'null',
|
||||
'true',
|
||||
'false'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-10.js
vendored
Normal file
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-10.js
vendored
Normal file
|
@ -0,0 +1,70 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-4-10",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-4-10.js",
|
||||
|
||||
description: "Allow reserved words as property names by set function within an object, verified with hasOwnProperty: in, try, class",
|
||||
|
||||
test: function testcase() {
|
||||
var test0 = 0, test1 = 1, test2 = 2;
|
||||
var tokenCodes = {
|
||||
set in(value){
|
||||
test0 = value;
|
||||
},
|
||||
get in(){
|
||||
return test0;
|
||||
},
|
||||
set try(value){
|
||||
test1 = value;
|
||||
},
|
||||
get try(){
|
||||
return test1
|
||||
},
|
||||
set class(value){
|
||||
test2 = value;
|
||||
},
|
||||
get class(){
|
||||
return test2;
|
||||
}
|
||||
};
|
||||
var arr = [
|
||||
'in',
|
||||
'try',
|
||||
'class'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-11.js
vendored
Normal file
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-11.js
vendored
Normal file
|
@ -0,0 +1,70 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-4-11",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-4-11.js",
|
||||
|
||||
description: "Allow reserved words as property names by set function within an object, verified with hasOwnProperty: enum, extends, super",
|
||||
|
||||
test: function testcase() {
|
||||
var test0 = 0, test1 = 1, test2 = 2;
|
||||
var tokenCodes = {
|
||||
set enum(value){
|
||||
test0 = value;
|
||||
},
|
||||
get enum(){
|
||||
return test0;
|
||||
},
|
||||
set extends(value){
|
||||
test1 = value;
|
||||
},
|
||||
get extends(){
|
||||
return test1;
|
||||
},
|
||||
set super(value){
|
||||
test2 = value;
|
||||
},
|
||||
get super(){
|
||||
return test2;
|
||||
}
|
||||
};
|
||||
var arr = [
|
||||
'enum',
|
||||
'extends',
|
||||
'super'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-12.js
vendored
Normal file
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-12.js
vendored
Normal file
|
@ -0,0 +1,70 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-4-12",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-4-12.js",
|
||||
|
||||
description: "Allow reserved words as property names by set function within an object, verified with hasOwnProperty: const, export, import",
|
||||
|
||||
test: function testcase() {
|
||||
var test0 = 0, test1 = 1, test2 = 2;
|
||||
var tokenCodes = {
|
||||
set const(value){
|
||||
test0 = value;
|
||||
},
|
||||
get const(){
|
||||
return test0;
|
||||
},
|
||||
set export(value){
|
||||
test1 = value;
|
||||
},
|
||||
get export(){
|
||||
return test1
|
||||
},
|
||||
set import(value){
|
||||
test2 = value;
|
||||
},
|
||||
get import(){
|
||||
return test2
|
||||
}
|
||||
};
|
||||
var arr = [
|
||||
'const',
|
||||
'export',
|
||||
'import'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-13.js
vendored
Normal file
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-13.js
vendored
Normal file
|
@ -0,0 +1,70 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-4-13",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-4-13.js",
|
||||
|
||||
description: "Allow reserved words as property names by set function within an object, verified with hasOwnProperty: implements, let, private",
|
||||
|
||||
test: function testcase() {
|
||||
var test0 = 0, test1 = 1, test2 = 2;
|
||||
var tokenCodes = {
|
||||
set implements(value){
|
||||
test0 = value;
|
||||
},
|
||||
get implements(){
|
||||
return test0;
|
||||
},
|
||||
set let(value){
|
||||
test1 = value;
|
||||
},
|
||||
get let(){
|
||||
return test1
|
||||
},
|
||||
set private(value){
|
||||
test2 = value;
|
||||
},
|
||||
get private(){
|
||||
return test2;
|
||||
}
|
||||
};
|
||||
var arr = [
|
||||
'implements',
|
||||
'let',
|
||||
'private'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-14.js
vendored
Normal file
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-14.js
vendored
Normal file
|
@ -0,0 +1,70 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-4-14",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-4-14.js",
|
||||
|
||||
description: "Allow reserved words as property names by set function within an object, verified with hasOwnProperty: public, yield, interface",
|
||||
|
||||
test: function testcase() {
|
||||
var test0 = 0, test1 = 1, test2 = 2;
|
||||
var tokenCodes = {
|
||||
set public(value){
|
||||
test0 = value;
|
||||
},
|
||||
get public(){
|
||||
return test0;
|
||||
},
|
||||
set yield(value){
|
||||
test1 = value;
|
||||
},
|
||||
get yield(){
|
||||
return test1;
|
||||
},
|
||||
set interface(value){
|
||||
test2 = value;
|
||||
},
|
||||
get interface(){
|
||||
return test2;
|
||||
}
|
||||
};
|
||||
var arr = [
|
||||
'public',
|
||||
'yield',
|
||||
'interface'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-15.js
vendored
Normal file
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-15.js
vendored
Normal file
|
@ -0,0 +1,70 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-4-15",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-4-15.js",
|
||||
|
||||
description: "Allow reserved words as property names by set function within an object, verified with hasOwnProperty: package, protected, static",
|
||||
|
||||
test: function testcase() {
|
||||
var test0 = 0, test1 = 1, test2 = 2;
|
||||
var tokenCodes = {
|
||||
set package(value){
|
||||
test0 = value;
|
||||
},
|
||||
get package(){
|
||||
return test0;
|
||||
},
|
||||
set protected(value){
|
||||
test1 = value;
|
||||
},
|
||||
get protected(){
|
||||
return test1
|
||||
},
|
||||
set static(value){
|
||||
test2 = value;
|
||||
},
|
||||
get static(){
|
||||
return test2;
|
||||
}
|
||||
};
|
||||
var arr = [
|
||||
'package',
|
||||
'protected',
|
||||
'static'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-16.js
vendored
Normal file
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-16.js
vendored
Normal file
|
@ -0,0 +1,70 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-4-16",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-4-16.js",
|
||||
|
||||
description: "Allow reserved words as property names by set function within an object, verified with hasOwnProperty: undefined, NaN, Infinity",
|
||||
|
||||
test: function testcase() {
|
||||
var test0 = 0, test1 = 1, test2 = 2;
|
||||
var tokenCodes = {
|
||||
set undefined(value){
|
||||
test0 = value;
|
||||
},
|
||||
get undefined(){
|
||||
return test0;
|
||||
},
|
||||
set NaN(value){
|
||||
test1 = value;
|
||||
},
|
||||
get NaN(){
|
||||
return test1;
|
||||
},
|
||||
set Infinity(value){
|
||||
test2 = value;
|
||||
},
|
||||
get Infinity(){
|
||||
return test2;
|
||||
}
|
||||
};
|
||||
var arr = [
|
||||
'undefined',
|
||||
'NaN',
|
||||
'Infinity'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-2.js
vendored
Normal file
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-2.js
vendored
Normal file
|
@ -0,0 +1,70 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-4-2",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-4-2.js",
|
||||
|
||||
description: "Allow reserved words as property names by set function within an object, verified with hasOwnProperty: break, case, do",
|
||||
|
||||
test: function testcase() {
|
||||
var test0 = 0, test1 = 1, test2 = 2;
|
||||
var tokenCodes = {
|
||||
set break(value){
|
||||
test0 = value;
|
||||
},
|
||||
get break(){
|
||||
return test0;
|
||||
},
|
||||
set case(value){
|
||||
test1 = value;
|
||||
},
|
||||
get case(){
|
||||
return test1;
|
||||
},
|
||||
set do(value){
|
||||
test2 = value;
|
||||
},
|
||||
get do(){
|
||||
return test2;
|
||||
}
|
||||
};
|
||||
var arr = [
|
||||
'break',
|
||||
'case',
|
||||
'do'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-3.js
vendored
Normal file
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-3.js
vendored
Normal file
|
@ -0,0 +1,70 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-4-3",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-4-3.js",
|
||||
|
||||
description: "Allow reserved words as property names by set function within an object, verified with hasOwnProperty: instanceof, typeof, else",
|
||||
|
||||
test: function testcase() {
|
||||
var test0 = 0, test1 = 1, test2 = 2;
|
||||
var tokenCodes = {
|
||||
set instanceof(value){
|
||||
test0 = value;
|
||||
},
|
||||
get instanceof(){
|
||||
return test0;
|
||||
},
|
||||
set typeof(value){
|
||||
test1 = value;
|
||||
},
|
||||
get typeof(){
|
||||
return test1;
|
||||
},
|
||||
set else(value){
|
||||
test2 = value;
|
||||
},
|
||||
get else(){
|
||||
return test2;
|
||||
}
|
||||
};
|
||||
var arr = [
|
||||
'instanceof',
|
||||
'typeof',
|
||||
'else'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-4.js
vendored
Normal file
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-4.js
vendored
Normal file
|
@ -0,0 +1,70 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-4-4",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-4-4.js",
|
||||
|
||||
description: "Allow reserved words as property names by set function within an object, verified with hasOwnProperty: new, var, catch",
|
||||
|
||||
test: function testcase() {
|
||||
var test0 = 0, test1 = 1, test2 = 2;
|
||||
var tokenCodes = {
|
||||
set new(value){
|
||||
test0 = value;
|
||||
},
|
||||
get new(){
|
||||
return test0;
|
||||
},
|
||||
set var(value){
|
||||
test1 = value;
|
||||
},
|
||||
get var(){
|
||||
return test1;
|
||||
},
|
||||
set catch(value){
|
||||
test2 = value;
|
||||
},
|
||||
get catch(){
|
||||
return test2;
|
||||
}
|
||||
};
|
||||
var arr = [
|
||||
'new',
|
||||
'var',
|
||||
'catch'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-5.js
vendored
Normal file
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-5.js
vendored
Normal file
|
@ -0,0 +1,70 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-4-5",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-4-5.js",
|
||||
|
||||
description: "Allow reserved words as property names by set function within an object, verified with hasOwnProperty: finally, return, void",
|
||||
|
||||
test: function testcase() {
|
||||
var test0 = 0, test1 = 1, test2 = 2;
|
||||
var tokenCodes = {
|
||||
set finally(value){
|
||||
test0 = value;
|
||||
},
|
||||
get finally(){
|
||||
return test0;
|
||||
},
|
||||
set return(value){
|
||||
test1 = value;
|
||||
},
|
||||
get return(){
|
||||
return test1;
|
||||
},
|
||||
set void(value){
|
||||
test2 = value;
|
||||
},
|
||||
get void(){
|
||||
return test2;
|
||||
}
|
||||
};
|
||||
var arr = [
|
||||
'finally',
|
||||
'return',
|
||||
'void'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-6.js
vendored
Normal file
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-6.js
vendored
Normal file
|
@ -0,0 +1,70 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-4-6",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-4-6.js",
|
||||
|
||||
description: "Allow reserved words as property names by set function within an object, verified with hasOwnProperty: continue, for, switch",
|
||||
|
||||
test: function testcase() {
|
||||
var test0 = 0, test1 = 1, test2 = 2;
|
||||
var tokenCodes = {
|
||||
set continue(value){
|
||||
test0 = value;
|
||||
},
|
||||
get continue(){
|
||||
return test0;
|
||||
},
|
||||
set for(value){
|
||||
test1 = value;
|
||||
},
|
||||
get for(){
|
||||
return test1;
|
||||
},
|
||||
set switch(value){
|
||||
test2 = value;
|
||||
},
|
||||
get switch(){
|
||||
return test2;
|
||||
}
|
||||
};
|
||||
var arr = [
|
||||
'continue',
|
||||
'for',
|
||||
'switch'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-7.js
vendored
Normal file
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-7.js
vendored
Normal file
|
@ -0,0 +1,70 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-4-7",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-4-7.js",
|
||||
|
||||
description: "Allow reserved words as property names by set function within an object, verified with hasOwnProperty: while, debugger, function",
|
||||
|
||||
test: function testcase() {
|
||||
var test0 = 0, test1 = 1, test2 = 2;
|
||||
var tokenCodes = {
|
||||
set while(value){
|
||||
test0 = value;
|
||||
},
|
||||
get while(){
|
||||
return test0
|
||||
},
|
||||
set debugger(value){
|
||||
test1 = value;
|
||||
},
|
||||
get debugger(){
|
||||
return test1;
|
||||
},
|
||||
set function(value){
|
||||
test2 = value;
|
||||
},
|
||||
get function(){
|
||||
return test2;
|
||||
}
|
||||
};
|
||||
var arr = [
|
||||
'while' ,
|
||||
'debugger',
|
||||
'function'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-8.js
vendored
Normal file
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-8.js
vendored
Normal file
|
@ -0,0 +1,70 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-4-8",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-4-8.js",
|
||||
|
||||
description: "Allow reserved words as property names by set function within an object, verified with hasOwnProperty: this, with, default",
|
||||
|
||||
test: function testcase() {
|
||||
var test0 = 0, test1 = 1, test2 = 2;
|
||||
var tokenCodes = {
|
||||
set this(value){
|
||||
test0 = value;
|
||||
},
|
||||
get this(){
|
||||
return test0;
|
||||
},
|
||||
set with(value){
|
||||
test1 = value;
|
||||
},
|
||||
get with(){
|
||||
return test1;
|
||||
},
|
||||
set default(value){
|
||||
test2 = value;
|
||||
},
|
||||
get default(){
|
||||
return test2;
|
||||
}
|
||||
};
|
||||
var arr = [
|
||||
'this',
|
||||
'with',
|
||||
'default'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-9.js
vendored
Normal file
70
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-4-9.js
vendored
Normal file
|
@ -0,0 +1,70 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-4-9",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-4-9.js",
|
||||
|
||||
description: "Allow reserved words as property names by set function within an object, verified with hasOwnProperty: if, throw, delete",
|
||||
|
||||
test: function testcase() {
|
||||
var test0 = 0, test1 = 1, test2 = 2;
|
||||
var tokenCodes = {
|
||||
set if(value){
|
||||
test0 = value;
|
||||
},
|
||||
get if(){
|
||||
return test0;
|
||||
},
|
||||
set throw(value){
|
||||
test1 = value;
|
||||
},
|
||||
get throw(){
|
||||
return test1
|
||||
},
|
||||
set delete(value){
|
||||
test2 = value;
|
||||
},
|
||||
get delete(){
|
||||
return test2;
|
||||
}
|
||||
};
|
||||
var arr = [
|
||||
'if',
|
||||
'throw',
|
||||
'delete'
|
||||
];
|
||||
for(var p in tokenCodes) {
|
||||
for(var p1 in arr) {
|
||||
if(arr[p1] === p) {
|
||||
if(!tokenCodes.hasOwnProperty(arr[p1])) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-1.js
vendored
Normal file
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-1.js
vendored
Normal file
|
@ -0,0 +1,50 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-5-1",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-5-1.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, accessed via indexing: null, true, false",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {
|
||||
null: 0,
|
||||
true: 1,
|
||||
false: 2
|
||||
};
|
||||
var arr = [
|
||||
'null',
|
||||
'true',
|
||||
'false'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-10.js
vendored
Normal file
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-10.js
vendored
Normal file
|
@ -0,0 +1,50 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-5-10",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-5-10.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, accessed via indexing: in, try, class",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {
|
||||
in: 0,
|
||||
try: 1,
|
||||
class: 2
|
||||
};
|
||||
var arr = [
|
||||
'in',
|
||||
'try',
|
||||
'class'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-11.js
vendored
Normal file
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-11.js
vendored
Normal file
|
@ -0,0 +1,50 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-5-11",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-5-11.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, accessed via indexing: enum, extends, super",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {
|
||||
enum: 0,
|
||||
extends: 1,
|
||||
super: 2
|
||||
};
|
||||
var arr = [
|
||||
'enum',
|
||||
'extends',
|
||||
'super'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-12.js
vendored
Normal file
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-12.js
vendored
Normal file
|
@ -0,0 +1,50 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-5-12",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-5-12.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, accessed via indexing: const, export, import",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {
|
||||
const : 0,
|
||||
export: 1,
|
||||
import: 2
|
||||
};
|
||||
var arr = [
|
||||
'const',
|
||||
'export',
|
||||
'import'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-13.js
vendored
Normal file
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-13.js
vendored
Normal file
|
@ -0,0 +1,50 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-5-13",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-5-13.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, accessed via indexing: implements, let, private",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {
|
||||
implements: 0,
|
||||
let: 1,
|
||||
private: 2
|
||||
};
|
||||
var arr = [
|
||||
'implements',
|
||||
'let',
|
||||
'private'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-14.js
vendored
Normal file
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-14.js
vendored
Normal file
|
@ -0,0 +1,50 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-5-14",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-5-14.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, accessed via indexing: public, yield, interface",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {
|
||||
public: 0,
|
||||
yield: 1,
|
||||
interface: 2
|
||||
};
|
||||
var arr = [
|
||||
'public',
|
||||
'yield',
|
||||
'interface'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-15.js
vendored
Normal file
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-15.js
vendored
Normal file
|
@ -0,0 +1,50 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-5-15",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-5-15.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, accessed via indexing: package, protected, static",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {
|
||||
package: 0,
|
||||
protected: 1,
|
||||
static: 2
|
||||
};
|
||||
var arr = [
|
||||
'package',
|
||||
'protected',
|
||||
'static'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-16.js
vendored
Normal file
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-16.js
vendored
Normal file
|
@ -0,0 +1,50 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-5-16",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-5-16.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, accessed via indexing: undefined, NaN, Infinity",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {
|
||||
undefined: 0,
|
||||
NaN: 1,
|
||||
Infinity: 2
|
||||
};
|
||||
var arr = [
|
||||
'undefined',
|
||||
'NaN',
|
||||
'Infinity'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-2.js
vendored
Normal file
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-2.js
vendored
Normal file
|
@ -0,0 +1,50 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-5-2",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-5-2.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, accessed via indexing: break, case, do",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {
|
||||
break: 0,
|
||||
case: 1,
|
||||
do: 2
|
||||
};
|
||||
var arr = [
|
||||
'break',
|
||||
'case',
|
||||
'do'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-3.js
vendored
Normal file
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-3.js
vendored
Normal file
|
@ -0,0 +1,50 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-5-3",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-5-3.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, accessed via indexing: instanceof, typeof, else",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {
|
||||
instanceof: 0,
|
||||
typeof: 1,
|
||||
else: 2
|
||||
};
|
||||
var arr = [
|
||||
'instanceof',
|
||||
'typeof',
|
||||
'else'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-4.js
vendored
Normal file
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-4.js
vendored
Normal file
|
@ -0,0 +1,50 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-5-4",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-5-4.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, accessed via indexing: new, var, catch",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {
|
||||
new: 0,
|
||||
var: 1,
|
||||
catch: 2
|
||||
};
|
||||
var arr = [
|
||||
'new',
|
||||
'var',
|
||||
'catch'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-5.js
vendored
Normal file
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-5.js
vendored
Normal file
|
@ -0,0 +1,50 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-5-5",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-5-5.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, accessed via indexing: finally, return, void",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {
|
||||
finally: 0,
|
||||
return: 1,
|
||||
void: 2
|
||||
};
|
||||
var arr = [
|
||||
'finally',
|
||||
'return',
|
||||
'void'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-6.js
vendored
Normal file
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-6.js
vendored
Normal file
|
@ -0,0 +1,50 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-5-6",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-5-6.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, accessed via indexing: continue, for, switch",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {
|
||||
continue: 0,
|
||||
for: 1,
|
||||
switch: 2
|
||||
};
|
||||
var arr = [
|
||||
'continue',
|
||||
'for',
|
||||
'switch'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-7.js
vendored
Normal file
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-7.js
vendored
Normal file
|
@ -0,0 +1,50 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-5-7",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-5-7.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, accessed via indexing: while, debugger, function",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {
|
||||
while: 0,
|
||||
debugger: 1,
|
||||
function: 2
|
||||
};
|
||||
var arr = [
|
||||
'while' ,
|
||||
'debugger',
|
||||
'function'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-8.js
vendored
Normal file
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-8.js
vendored
Normal file
|
@ -0,0 +1,50 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-5-8",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-5-8.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, accessed via indexing: this, with, default",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {
|
||||
this: 0,
|
||||
with: 1,
|
||||
default: 2
|
||||
};
|
||||
var arr = [
|
||||
'this',
|
||||
'with',
|
||||
'default'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-9.js
vendored
Normal file
50
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-5-9.js
vendored
Normal file
|
@ -0,0 +1,50 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-5-9",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-5-9.js",
|
||||
|
||||
description: "Allow reserved words as property names at object initialization, accessed via indexing: if, throw, delete",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {
|
||||
if: 0,
|
||||
throw: 1,
|
||||
delete: 2
|
||||
};
|
||||
var arr = [
|
||||
'if',
|
||||
'throw',
|
||||
'delete'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-1.js
vendored
Normal file
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-1.js
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-6-1",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-6-1.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, accessed via indexing: null, true, false",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.null = 0;
|
||||
tokenCodes.true = 1;
|
||||
tokenCodes.false = 2;
|
||||
var arr = [
|
||||
'null',
|
||||
'true',
|
||||
'false'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-10.js
vendored
Normal file
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-10.js
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-6-10",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-6-10.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, accessed via indexing: in, try, class",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.in = 0;
|
||||
tokenCodes.try = 1;
|
||||
tokenCodes.class = 2;
|
||||
var arr = [
|
||||
'in',
|
||||
'try',
|
||||
'class'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-11.js
vendored
Normal file
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-11.js
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-6-11",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-6-11.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, accessed via indexing: enum, extends, super",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.enum = 0;
|
||||
tokenCodes.extends = 1;
|
||||
tokenCodes.super = 2;
|
||||
var arr = [
|
||||
'enum',
|
||||
'extends',
|
||||
'super'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-12.js
vendored
Normal file
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-12.js
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-6-12",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-6-12.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, accessed via indexing: const, export, import",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.const = 0;
|
||||
tokenCodes.export = 1;
|
||||
tokenCodes.import = 2;
|
||||
var arr = [
|
||||
'const',
|
||||
'export',
|
||||
'import'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-13.js
vendored
Normal file
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-13.js
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-6-13",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-6-13.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, accessed via indexing: implements, let, private",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.implements = 0;
|
||||
tokenCodes.let = 1;
|
||||
tokenCodes.private = 2;
|
||||
var arr = [
|
||||
'implements',
|
||||
'let',
|
||||
'private'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-14.js
vendored
Normal file
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-14.js
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-6-14",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-6-14.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, accessed via indexing: public, yield, interface",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.public = 0;
|
||||
tokenCodes.yield = 1;
|
||||
tokenCodes.interface = 2;
|
||||
var arr = [
|
||||
'public',
|
||||
'yield',
|
||||
'interface'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-15.js
vendored
Normal file
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-15.js
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-6-15",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-6-15.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, accessed via indexing: package, protected, static",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.package = 0;
|
||||
tokenCodes.protected = 1;
|
||||
tokenCodes.static = 2;
|
||||
var arr = [
|
||||
'package',
|
||||
'protected',
|
||||
'static'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-16.js
vendored
Normal file
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-16.js
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-6-16",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-6-16.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, accessed via indexing: undefined, NaN, Infinity",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.undefined = 0;
|
||||
tokenCodes.NaN = 1;
|
||||
tokenCodes.Infinity = 2;
|
||||
var arr = [
|
||||
'undefined',
|
||||
'NaN',
|
||||
'Infinity'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-2.js
vendored
Normal file
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-2.js
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-6-2",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-6-2.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, accessed via indexing: break, case, do",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.break = 0;
|
||||
tokenCodes.case = 1;
|
||||
tokenCodes.do = 2;
|
||||
var arr = [
|
||||
'break',
|
||||
'case',
|
||||
'do'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-3.js
vendored
Normal file
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-3.js
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-6-3",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-6-3.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, accessed via indexing: instanceof, typeof, else",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.instanceof = 0;
|
||||
tokenCodes.typeof = 1;
|
||||
tokenCodes.else = 2;
|
||||
var arr = [
|
||||
'instanceof',
|
||||
'typeof',
|
||||
'else'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-4.js
vendored
Normal file
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-4.js
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-6-4",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-6-4.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, accessed via indexing: new, var, catch",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.new = 0;
|
||||
tokenCodes.var = 1;
|
||||
tokenCodes.catch = 2;
|
||||
var arr = [
|
||||
'new',
|
||||
'var',
|
||||
'catch'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-5.js
vendored
Normal file
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-5.js
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-6-5",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-6-5.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, accessed via indexing: finally, return, void",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.finally = 0;
|
||||
tokenCodes.return = 1;
|
||||
tokenCodes.void = 2;
|
||||
var arr = [
|
||||
'finally',
|
||||
'return',
|
||||
'void'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-6.js
vendored
Normal file
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-6.js
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-6-6",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-6-6.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, accessed via indexing: continue, for, switch",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.continue = 0;
|
||||
tokenCodes.for = 1;
|
||||
tokenCodes.switch = 2;
|
||||
var arr = [
|
||||
'continue',
|
||||
'for',
|
||||
'switch'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-7.js
vendored
Normal file
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-7.js
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-6-7",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-6-7.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, accessed via indexing: while, debugger, function",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.while = 0;
|
||||
tokenCodes.debugger = 1;
|
||||
tokenCodes.function = 2;
|
||||
var arr = [
|
||||
'while' ,
|
||||
'debugger',
|
||||
'function'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-8.js
vendored
Normal file
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-8.js
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-6-8",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-6-8.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, accessed via indexing: this, with, default",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.this = 0;
|
||||
tokenCodes.with = 1;
|
||||
tokenCodes.default = 2;
|
||||
var arr = [
|
||||
'this',
|
||||
'with',
|
||||
'default'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true; return true;
|
||||
}
|
||||
});
|
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-9.js
vendored
Normal file
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-6-9.js
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-6-9",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-6-9.js",
|
||||
|
||||
description: "Allow reserved words as property names by dot operator assignment, accessed via indexing: if, throw, delete",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes.if = 0;
|
||||
tokenCodes.throw = 1;
|
||||
tokenCodes.delete = 2;
|
||||
var arr = [
|
||||
'if',
|
||||
'throw',
|
||||
'delete'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-7-1.js
vendored
Normal file
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-7-1.js
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-7-1",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-7-1.js",
|
||||
|
||||
description: "Allow reserved words as property names by index assignment, accessed via indexing: null, true, false",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes['null'] = 0;
|
||||
tokenCodes['true'] = 1;
|
||||
tokenCodes['false'] = 2;
|
||||
var arr = [
|
||||
'null',
|
||||
'true',
|
||||
'false'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-7-10.js
vendored
Normal file
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-7-10.js
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-7-10",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-7-10.js",
|
||||
|
||||
description: "Allow reserved words as property names by index assignment, accessed via indexing: in, try, class",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes['in'] = 0;
|
||||
tokenCodes['try'] = 1;
|
||||
tokenCodes['class'] = 2;
|
||||
var arr = [
|
||||
'in',
|
||||
'try',
|
||||
'class'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-7-11.js
vendored
Normal file
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-7-11.js
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-7-11",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-7-11.js",
|
||||
|
||||
description: "Allow reserved words as property names by index assignment, accessed via indexing: enum, extends, super",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes['enum'] = 0;
|
||||
tokenCodes['extends'] = 1;
|
||||
tokenCodes['super'] = 2;
|
||||
var arr = [
|
||||
'enum',
|
||||
'extends',
|
||||
'super'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-7-12.js
vendored
Normal file
49
external/contributions/Microsoft/ietestcenter_ie9_rc1_refresh1/chapter07/7.6/7.6.1/7.6.1-7-12.js
vendored
Normal file
|
@ -0,0 +1,49 @@
|
|||
/// Copyright (c) 2009 Microsoft Corporation
|
||||
///
|
||||
/// Redistribution and use in source and binary forms, with or without modification, are permitted provided
|
||||
/// that the following conditions are met:
|
||||
/// * Redistributions of source code must retain the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer.
|
||||
/// * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and
|
||||
/// the following disclaimer in the documentation and/or other materials provided with the distribution.
|
||||
/// * Neither the name of Microsoft nor the names of its contributors may be used to
|
||||
/// endorse or promote products derived from this software without specific prior written permission.
|
||||
///
|
||||
/// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
|
||||
/// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
/// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
|
||||
/// FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
||||
/// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
||||
/// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
/// OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
||||
/// ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
|
||||
ES5Harness.registerTest({
|
||||
id: "7.6.1-7-12",
|
||||
|
||||
path: "TestCases/chapter07/7.6/7.6.1/7.6.1-7-12.js",
|
||||
|
||||
description: "Allow reserved words as property names by index assignment, accessed via indexing: const, export, import",
|
||||
|
||||
test: function testcase() {
|
||||
var tokenCodes = {};
|
||||
tokenCodes['const'] = 0;
|
||||
tokenCodes['export'] = 1;
|
||||
tokenCodes['import'] = 2;
|
||||
var arr = [
|
||||
'const',
|
||||
'export',
|
||||
'import'
|
||||
];
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
if (tokenCodes[arr[i]] !== i) {
|
||||
return false;
|
||||
};
|
||||
}
|
||||
return true;
|
||||
},
|
||||
|
||||
precondition: function prereq() { return true;
|
||||
}
|
||||
});
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue