diff options
Diffstat (limited to 'external/contributions/Google/sputniktests/tests/Conformance/08_Types/8.6_The_Object_Type/S8.6_A3_T1.js')
-rw-r--r-- | external/contributions/Google/sputniktests/tests/Conformance/08_Types/8.6_The_Object_Type/S8.6_A3_T1.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/external/contributions/Google/sputniktests/tests/Conformance/08_Types/8.6_The_Object_Type/S8.6_A3_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/08_Types/8.6_The_Object_Type/S8.6_A3_T1.js new file mode 100644 index 000000000..51a6d24b2 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/08_Types/8.6_The_Object_Type/S8.6_A3_T1.js @@ -0,0 +1,22 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** +* @name: S8.6_A3_T1; +* @section: 8.6, 11.4.4; +* @assertion: Do not crash with pefixincrement custom property; +* @description: Try to implement pefixincrement for custom property; +*/ + +var __map={foo:'bar'}; + +////////////////////////////////////////////////////////////////////////////// +//CHECK#1 + +++__map.foo; +if (!isNaN(__map.foo)) { + $ERROR('#1: var __map={foo:"bar"}; ++__map.foo; __map.foo === Not-a-Number. Actual: ' + (__map.foo)); +} + +// +////////////////////////////////////////////////////////////////////////////// |