Skip to content
Snippets Groups Projects
Commit d378bd6d authored by Mark Miller's avatar Mark Miller
Browse files
parent 7cd21e6f
No related branches found
No related tags found
No related merge requests found
...@@ -123,8 +123,6 @@ ...@@ -123,8 +123,6 @@
<test id="S15.5.4.10_A1_T3">https://bugs.ecmascript.org/show_bug.cgi?id=23</test> <test id="S15.5.4.10_A1_T3">https://bugs.ecmascript.org/show_bug.cgi?id=23</test>
<test id="S8.6.2_A5_T1">https://bugs.ecmascript.org/show_bug.cgi?id=24</test>
<test id="S12.6.4_A14_T1">https://bugs.ecmascript.org/show_bug.cgi?id=25</test> <test id="S12.6.4_A14_T1">https://bugs.ecmascript.org/show_bug.cgi?id=25</test>
<test id="S15.5.4.8_A1_T11">https://bugs.ecmascript.org/show_bug.cgi?id=30</test> <test id="S15.5.4.8_A1_T11">https://bugs.ecmascript.org/show_bug.cgi?id=30</test>
......
...@@ -6,26 +6,26 @@ ...@@ -6,26 +6,26 @@
* @section: 8.6.2, 13.1, 13.2; * @section: 8.6.2, 13.1, 13.2;
* @assertion: [[Call]] executes code associated with the object; * @assertion: [[Call]] executes code associated with the object;
* @description: Call function-property of object, property defined * @description: Call function-property of object, property defined
* as screen = {touch:function(){count++}}; * as testScreen = {touch:function(){count++}};
*/ */
this.count=0; this.count=0;
var screen = {touch:function(){count++}}; var testScreen = {touch:function(){count++}};
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#1 //CHECK#1
screen.touch(); testScreen.touch();
if (count !==1) { if (count !==1) {
$ERROR('#1: this.count=0; screen = {touch:function(){count++}}; screen.touch(); count === 1. Actual: ' + (count)); $ERROR('#1: this.count=0; testScreen = {touch:function(){count++}}; testScreen.touch(); count === 1. Actual: ' + (count));
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
//CHECK#2 //CHECK#2
screen['touch'](); testScreen['touch']();
if (count !==2) { if (count !==2) {
$ERROR('#2: this.count=0; screen = {touch:function(){count++}}; screen.touch(); screen[\'touch\'](); count === 2. Actual: ' + (count)); $ERROR('#2: this.count=0; testScreen = {touch:function(){count++}}; testScreen.touch(); testScreen[\'touch\'](); count === 2. Actual: ' + (count));
} }
// //
////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment