summaryrefslogtreecommitdiff
path: root/external/contributions/Google/sputnik_conformance_modified/15_Native/15.1_The_Global_Object/15.1.2_Function_Properties_of_the_Global_Object/15.1.2.2_parseInt/S15.1.2.2_A4.1_T1.js
diff options
context:
space:
mode:
Diffstat (limited to 'external/contributions/Google/sputnik_conformance_modified/15_Native/15.1_The_Global_Object/15.1.2_Function_Properties_of_the_Global_Object/15.1.2.2_parseInt/S15.1.2.2_A4.1_T1.js')
-rw-r--r--external/contributions/Google/sputnik_conformance_modified/15_Native/15.1_The_Global_Object/15.1.2_Function_Properties_of_the_Global_Object/15.1.2.2_parseInt/S15.1.2.2_A4.1_T1.js74
1 files changed, 74 insertions, 0 deletions
diff --git a/external/contributions/Google/sputnik_conformance_modified/15_Native/15.1_The_Global_Object/15.1.2_Function_Properties_of_the_Global_Object/15.1.2.2_parseInt/S15.1.2.2_A4.1_T1.js b/external/contributions/Google/sputnik_conformance_modified/15_Native/15.1_The_Global_Object/15.1.2_Function_Properties_of_the_Global_Object/15.1.2.2_parseInt/S15.1.2.2_A4.1_T1.js
new file mode 100644
index 000000000..a4b034e9b
--- /dev/null
+++ b/external/contributions/Google/sputnik_conformance_modified/15_Native/15.1_The_Global_Object/15.1.2_Function_Properties_of_the_Global_Object/15.1.2.2_parseInt/S15.1.2.2_A4.1_T1.js
@@ -0,0 +1,74 @@
+// Copyright 2009 the Sputnik authors. All rights reserved.
+// This code is governed by the BSD license found in the LICENSE file.
+
+/**
+ * @name: S15.1.2.2_A4.1_T1;
+ * @section: 15.1.2.2;
+ * @assertion: If R = 0 or R = undefined, then R = 10;
+ * @description: R = 0;
+*/
+
+//CHECK#0
+if (parseInt("0", 0) !== parseInt("0", 10)) {
+ $ERROR('#0: parseInt("0", 0) === parseInt("0", 10). Actual: ' + (parseInt("0", 0)));
+}
+
+//CHECK#1
+if (parseInt("1", 0) !== parseInt("1", 10)) {
+ $ERROR('#1: parseInt("1", 0) === parseInt("01", 10). Actual: ' + (parseInt("1", 0)));
+}
+
+//CHECK#2
+if (parseInt("2", 0) !== parseInt("2", 10)) {
+ $ERROR('#2: parseInt("2", 0) === parseInt("2", 10). Actual: ' + (parseInt("2", 0)));
+}
+
+//CHECK#3
+if (parseInt("3", 0) !== parseInt("3", 10)) {
+ $ERROR('#3: parseInt("3", 0) === parseInt("3", 10). Actual: ' + (parseInt("3", 0)));
+}
+
+//CHECK#4
+if (parseInt("4", 0) !== parseInt("4", 10)) {
+ $ERROR('#4: parseInt("4", 0) === parseInt(4", 10). Actual: ' + (parseInt("4", 0)));
+}
+
+//CHECK#5
+if (parseInt("5", 0) !== parseInt("5", 10)) {
+ $ERROR('#5: parseInt("5", 0) === parseInt("5", 10). Actual: ' + (parseInt("5", 0)));
+}
+
+//CHECK#6
+if (parseInt("6", 0) !== parseInt("6", 10)) {
+ $ERROR('#6: parseInt("6", 0) === parseInt("6", 10). Actual: ' + (parseInt("6", 0)));
+}
+
+//CHECK#7
+if (parseInt("7", 0) !== parseInt("7", 10)) {
+ $ERROR('#7: parseInt("7", 0) === parseInt("7", 10). Actual: ' + (parseInt("7", 0)));
+}
+
+//CHECK#8
+if (parseInt("8", 0) !== parseInt("8", 10)) {
+ $ERROR('#8: parseInt("8", 0) === parseInt("8", 10). Actual: ' + (parseInt("8", 0)));
+}
+
+//CHECK#9
+if (parseInt("9", 0) !== parseInt("9", 10)) {
+ $ERROR('#9: parseInt("9", 0) === parseInt("9", 10). Actual: ' + (parseInt("9", 0)));
+}
+
+//CHECK#10
+if (parseInt("10", 0) !== parseInt("10", 10)) {
+ $ERROR('#10: parseInt("10", 0) === parseInt("10", 10). Actual: ' + (parseInt("10", 0)));
+}
+
+//CHECK#11
+if (parseInt("11", 0) !== parseInt("11", 10)) {
+ $ERROR('#11: parseInt("11", 0) === parseInt("11", 10). Actual: ' + (parseInt("11", 0)));
+}
+
+//CHECK#12
+if (parseInt("9999", 0) !== parseInt("9999", 10)) {
+ $ERROR('#12: parseInt("9999", 0) === parseInt("9999", 10). Actual: ' + (parseInt("9999", 0)));
+}