diff options
Diffstat (limited to 'external/contributions/Google/sputnik_conformance_modified/12_Statement/12.5_The_if_Statement/S12.5_A11.js')
-rw-r--r-- | external/contributions/Google/sputnik_conformance_modified/12_Statement/12.5_The_if_Statement/S12.5_A11.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/external/contributions/Google/sputnik_conformance_modified/12_Statement/12.5_The_if_Statement/S12.5_A11.js b/external/contributions/Google/sputnik_conformance_modified/12_Statement/12.5_The_if_Statement/S12.5_A11.js new file mode 100644 index 000000000..6d845a985 --- /dev/null +++ b/external/contributions/Google/sputnik_conformance_modified/12_Statement/12.5_The_if_Statement/S12.5_A11.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: S12.5_A11;
+* @section: 12.5;
+* @assertion: {} within the "if" expression is not allowed;
+* @description: Checking if execution of "if({1})" fails;
+* @negative;
+*/
+
+//////////////////////////////////////////////////////////////////////////////
+//CHECK#
+if({1})
+ {
+ ;
+ }else
+ {
+ ;
+ }
+//
+//////////////////////////////////////////////////////////////////////////////
|