diff options
Diffstat (limited to 'external/contributions/Google/sputniktests/tests/Conformance/12_Statement/12.2_Variable_Statement/S12.2_A8_T1.js')
-rw-r--r-- | external/contributions/Google/sputniktests/tests/Conformance/12_Statement/12.2_Variable_Statement/S12.2_A8_T1.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/external/contributions/Google/sputniktests/tests/Conformance/12_Statement/12.2_Variable_Statement/S12.2_A8_T1.js b/external/contributions/Google/sputniktests/tests/Conformance/12_Statement/12.2_Variable_Statement/S12.2_A8_T1.js new file mode 100644 index 000000000..c9990a961 --- /dev/null +++ b/external/contributions/Google/sputniktests/tests/Conformance/12_Statement/12.2_Variable_Statement/S12.2_A8_T1.js @@ -0,0 +1,16 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** +* @name: S12.2_A8_T1; +* @section: 12.2; +* @assertion: Only AssignmentExpression is admitted when variable is initialized; +* @description: Checking if execution of "var x += 1" fails; +* @negative; +*/ + +////////////////////////////////////////////////////////////////////////////// +//CHECK#1 +var x += 1; +// +////////////////////////////////////////////////////////////////////////////// |