Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(142)

Side by Side Diff: tests/compiler/dart2js_native/oddly_named_fields_test.dart

Issue 2345083003: dart2js: run dartfmt on tests (Closed)
Patch Set: revert another multipart test Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import 'dart:_js_helper'; 5 import 'dart:_js_helper';
6 6
7 // JavaScript reserved words: 7 // JavaScript reserved words:
8 // 8 //
9 // break 9 // break
10 // case 10 // case
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // "Identifier" and "IdentifierName". The latter includes reserved 56 // "Identifier" and "IdentifierName". The latter includes reserved
57 // words. This is legal JavaScript according to ECMA-262.5: 57 // words. This is legal JavaScript according to ECMA-262.5:
58 // 58 //
59 // this.default 59 // this.default
60 // 60 //
61 // See section 11.2 "Left-Hand-Side Expressions" which states that a 61 // See section 11.2 "Left-Hand-Side Expressions" which states that a
62 // "MemberExpression" includes: "MemberExpression . IdentifierName". 62 // "MemberExpression" includes: "MemberExpression . IdentifierName".
63 63
64 @Native("NativeClassWithOddNames") 64 @Native("NativeClassWithOddNames")
65 class NativeClassWithOddNames { 65 class NativeClassWithOddNames {
66 @JSName('break') bool breakValue; 66 @JSName('break')
67 @JSName('case') bool caseValue; 67 bool breakValue;
68 @JSName('catch') bool catchValue; 68 @JSName('case')
69 @JSName('class') bool classValue; 69 bool caseValue;
70 @JSName('const') bool constValue; 70 @JSName('catch')
71 @JSName('continue') bool continueValue; 71 bool catchValue;
72 @JSName('debugger') bool debuggerValue; 72 @JSName('class')
73 @JSName('default') bool defaultValue; 73 bool classValue;
74 @JSName('delete') bool deleteValue; 74 @JSName('const')
75 @JSName('do') bool doValue; 75 bool constValue;
76 @JSName('else') bool elseValue; 76 @JSName('continue')
77 @JSName('enum') bool enumValue; 77 bool continueValue;
78 @JSName('export') bool exportValue; 78 @JSName('debugger')
79 @JSName('extends') bool extendsValue; 79 bool debuggerValue;
80 @JSName('false') bool falseValue; 80 @JSName('default')
81 @JSName('finally') bool finallyValue; 81 bool defaultValue;
82 @JSName('for') bool forValue; 82 @JSName('delete')
83 @JSName('function') bool functionValue; 83 bool deleteValue;
84 @JSName('if') bool ifValue; 84 @JSName('do')
85 @JSName('implements') bool implementsValue; 85 bool doValue;
86 @JSName('import') bool importValue; 86 @JSName('else')
87 @JSName('in') bool inValue; 87 bool elseValue;
88 @JSName('instanceof') bool instanceofValue; 88 @JSName('enum')
89 @JSName('interface') bool interfaceValue; 89 bool enumValue;
90 @JSName('let') bool letValue; 90 @JSName('export')
91 @JSName('new') bool newValue; 91 bool exportValue;
92 @JSName('null') bool nullValue; 92 @JSName('extends')
93 @JSName('package') bool packageValue; 93 bool extendsValue;
94 @JSName('private') bool privateValue; 94 @JSName('false')
95 @JSName('protected') bool protectedValue; 95 bool falseValue;
96 @JSName('public') bool publicValue; 96 @JSName('finally')
97 @JSName('return') bool returnValue; 97 bool finallyValue;
98 @JSName('static') bool staticValue; 98 @JSName('for')
99 @JSName('super') bool superValue; 99 bool forValue;
100 @JSName('switch') bool switchValue; 100 @JSName('function')
101 @JSName('this') bool thisValue; 101 bool functionValue;
102 @JSName('throw') bool throwValue; 102 @JSName('if')
103 @JSName('true') bool trueValue; 103 bool ifValue;
104 @JSName('try') bool tryValue; 104 @JSName('implements')
105 @JSName('typeof') bool typeofValue; 105 bool implementsValue;
106 @JSName('var') bool varValue; 106 @JSName('import')
107 @JSName('void') bool voidValue; 107 bool importValue;
108 @JSName('while') bool whileValue; 108 @JSName('in')
109 @JSName('with') bool withValue; 109 bool inValue;
110 @JSName('yield') bool yieldValue; 110 @JSName('instanceof')
111 bool instanceofValue;
112 @JSName('interface')
113 bool interfaceValue;
114 @JSName('let')
115 bool letValue;
116 @JSName('new')
117 bool newValue;
118 @JSName('null')
119 bool nullValue;
120 @JSName('package')
121 bool packageValue;
122 @JSName('private')
123 bool privateValue;
124 @JSName('protected')
125 bool protectedValue;
126 @JSName('public')
127 bool publicValue;
128 @JSName('return')
129 bool returnValue;
130 @JSName('static')
131 bool staticValue;
132 @JSName('super')
133 bool superValue;
134 @JSName('switch')
135 bool switchValue;
136 @JSName('this')
137 bool thisValue;
138 @JSName('throw')
139 bool throwValue;
140 @JSName('true')
141 bool trueValue;
142 @JSName('try')
143 bool tryValue;
144 @JSName('typeof')
145 bool typeofValue;
146 @JSName('var')
147 bool varValue;
148 @JSName('void')
149 bool voidValue;
150 @JSName('while')
151 bool whileValue;
152 @JSName('with')
153 bool withValue;
154 @JSName('yield')
155 bool yieldValue;
111 156
112 void testMyFields() { 157 void testMyFields() {
113
114 if (breakValue != null) throw 'incorrect initialization of "breakValue"'; 158 if (breakValue != null) throw 'incorrect initialization of "breakValue"';
115 breakValue = true; 159 breakValue = true;
116 if (!breakValue) throw 'incorrect value in "breakValue"'; 160 if (!breakValue) throw 'incorrect value in "breakValue"';
117 breakValue = false; 161 breakValue = false;
118 if (breakValue) throw 'incorrect value in "breakValue"'; 162 if (breakValue) throw 'incorrect value in "breakValue"';
119 163
120 if (caseValue != null) throw 'incorrect initialization of "caseValue"'; 164 if (caseValue != null) throw 'incorrect initialization of "caseValue"';
121 caseValue = true; 165 caseValue = true;
122 if (!caseValue) throw 'incorrect value in "caseValue"'; 166 if (!caseValue) throw 'incorrect value in "caseValue"';
123 caseValue = false; 167 caseValue = false;
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 withValue = true; 429 withValue = true;
386 if (!withValue) throw 'incorrect value in "withValue"'; 430 if (!withValue) throw 'incorrect value in "withValue"';
387 withValue = false; 431 withValue = false;
388 if (withValue) throw 'incorrect value in "withValue"'; 432 if (withValue) throw 'incorrect value in "withValue"';
389 433
390 if (yieldValue != null) throw 'incorrect initialization of "yieldValue"'; 434 if (yieldValue != null) throw 'incorrect initialization of "yieldValue"';
391 yieldValue = true; 435 yieldValue = true;
392 if (!yieldValue) throw 'incorrect value in "yieldValue"'; 436 if (!yieldValue) throw 'incorrect value in "yieldValue"';
393 yieldValue = false; 437 yieldValue = false;
394 if (yieldValue) throw 'incorrect value in "yieldValue"'; 438 if (yieldValue) throw 'incorrect value in "yieldValue"';
395
396 } 439 }
397 } 440 }
398 441
399 class ClassWithOddNames { 442 class ClassWithOddNames {
400 bool breakValue; 443 bool breakValue;
401 bool caseValue; 444 bool caseValue;
402 bool catchValue; 445 bool catchValue;
403 bool classValue; 446 bool classValue;
404 bool constValue; 447 bool constValue;
405 bool continueValue; 448 bool continueValue;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 bool trueValue; 480 bool trueValue;
438 bool tryValue; 481 bool tryValue;
439 bool typeofValue; 482 bool typeofValue;
440 bool varValue; 483 bool varValue;
441 bool voidValue; 484 bool voidValue;
442 bool whileValue; 485 bool whileValue;
443 bool withValue; 486 bool withValue;
444 bool yieldValue; 487 bool yieldValue;
445 488
446 void testMyFields() { 489 void testMyFields() {
447
448 if (breakValue != null) throw 'incorrect initialization of "breakValue"'; 490 if (breakValue != null) throw 'incorrect initialization of "breakValue"';
449 breakValue = true; 491 breakValue = true;
450 if (!breakValue) throw 'incorrect value in "breakValue"'; 492 if (!breakValue) throw 'incorrect value in "breakValue"';
451 breakValue = false; 493 breakValue = false;
452 if (breakValue) throw 'incorrect value in "breakValue"'; 494 if (breakValue) throw 'incorrect value in "breakValue"';
453 495
454 if (caseValue != null) throw 'incorrect initialization of "caseValue"'; 496 if (caseValue != null) throw 'incorrect initialization of "caseValue"';
455 caseValue = true; 497 caseValue = true;
456 if (!caseValue) throw 'incorrect value in "caseValue"'; 498 if (!caseValue) throw 'incorrect value in "caseValue"';
457 caseValue = false; 499 caseValue = false;
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
719 withValue = true; 761 withValue = true;
720 if (!withValue) throw 'incorrect value in "withValue"'; 762 if (!withValue) throw 'incorrect value in "withValue"';
721 withValue = false; 763 withValue = false;
722 if (withValue) throw 'incorrect value in "withValue"'; 764 if (withValue) throw 'incorrect value in "withValue"';
723 765
724 if (yieldValue != null) throw 'incorrect initialization of "yieldValue"'; 766 if (yieldValue != null) throw 'incorrect initialization of "yieldValue"';
725 yieldValue = true; 767 yieldValue = true;
726 if (!yieldValue) throw 'incorrect value in "yieldValue"'; 768 if (!yieldValue) throw 'incorrect value in "yieldValue"';
727 yieldValue = false; 769 yieldValue = false;
728 if (yieldValue) throw 'incorrect value in "yieldValue"'; 770 if (yieldValue) throw 'incorrect value in "yieldValue"';
729
730 } 771 }
731 } 772 }
732 773
733 /// Called once with an instance of NativeClassWithOddNames making it easy 774 /// Called once with an instance of NativeClassWithOddNames making it easy
734 /// to inline accessors. 775 /// to inline accessors.
735 testObjectStronglyTyped(object) { 776 testObjectStronglyTyped(object) {
736 if (object.breakValue == null) 777 if (object.breakValue == null)
737 throw 'incorrect initialization of "breakValue"'; 778 throw 'incorrect initialization of "breakValue"';
738 object.breakValue = true; 779 object.breakValue = true;
739 if (!object.breakValue) throw 'incorrect value in "breakValue"'; 780 if (!object.breakValue) throw 'incorrect value in "breakValue"';
740 object.breakValue = false; 781 object.breakValue = false;
741 if (object.breakValue) throw 'incorrect value in "breakValue"'; 782 if (object.breakValue) throw 'incorrect value in "breakValue"';
742 783
743 if (object.caseValue == null) 784 if (object.caseValue == null) throw 'incorrect initialization of "caseValue"';
744 throw 'incorrect initialization of "caseValue"';
745 object.caseValue = true; 785 object.caseValue = true;
746 if (!object.caseValue) throw 'incorrect value in "caseValue"'; 786 if (!object.caseValue) throw 'incorrect value in "caseValue"';
747 object.caseValue = false; 787 object.caseValue = false;
748 if (object.caseValue) throw 'incorrect value in "caseValue"'; 788 if (object.caseValue) throw 'incorrect value in "caseValue"';
749 789
750 if (object.catchValue == null) 790 if (object.catchValue == null)
751 throw 'incorrect initialization of "catchValue"'; 791 throw 'incorrect initialization of "catchValue"';
752 object.catchValue = true; 792 object.catchValue = true;
753 if (!object.catchValue) throw 'incorrect value in "catchValue"'; 793 if (!object.catchValue) throw 'incorrect value in "catchValue"';
754 object.catchValue = false; 794 object.catchValue = false;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 object.defaultValue = false; 829 object.defaultValue = false;
790 if (object.defaultValue) throw 'incorrect value in "defaultValue"'; 830 if (object.defaultValue) throw 'incorrect value in "defaultValue"';
791 831
792 if (object.deleteValue == null) 832 if (object.deleteValue == null)
793 throw 'incorrect initialization of "deleteValue"'; 833 throw 'incorrect initialization of "deleteValue"';
794 object.deleteValue = true; 834 object.deleteValue = true;
795 if (!object.deleteValue) throw 'incorrect value in "deleteValue"'; 835 if (!object.deleteValue) throw 'incorrect value in "deleteValue"';
796 object.deleteValue = false; 836 object.deleteValue = false;
797 if (object.deleteValue) throw 'incorrect value in "deleteValue"'; 837 if (object.deleteValue) throw 'incorrect value in "deleteValue"';
798 838
799 if (object.doValue == null) 839 if (object.doValue == null) throw 'incorrect initialization of "doValue"';
800 throw 'incorrect initialization of "doValue"';
801 object.doValue = true; 840 object.doValue = true;
802 if (!object.doValue) throw 'incorrect value in "doValue"'; 841 if (!object.doValue) throw 'incorrect value in "doValue"';
803 object.doValue = false; 842 object.doValue = false;
804 if (object.doValue) throw 'incorrect value in "doValue"'; 843 if (object.doValue) throw 'incorrect value in "doValue"';
805 844
806 if (object.elseValue == null) 845 if (object.elseValue == null) throw 'incorrect initialization of "elseValue"';
807 throw 'incorrect initialization of "elseValue"';
808 object.elseValue = true; 846 object.elseValue = true;
809 if (!object.elseValue) throw 'incorrect value in "elseValue"'; 847 if (!object.elseValue) throw 'incorrect value in "elseValue"';
810 object.elseValue = false; 848 object.elseValue = false;
811 if (object.elseValue) throw 'incorrect value in "elseValue"'; 849 if (object.elseValue) throw 'incorrect value in "elseValue"';
812 850
813 if (object.enumValue == null) 851 if (object.enumValue == null) throw 'incorrect initialization of "enumValue"';
814 throw 'incorrect initialization of "enumValue"';
815 object.enumValue = true; 852 object.enumValue = true;
816 if (!object.enumValue) throw 'incorrect value in "enumValue"'; 853 if (!object.enumValue) throw 'incorrect value in "enumValue"';
817 object.enumValue = false; 854 object.enumValue = false;
818 if (object.enumValue) throw 'incorrect value in "enumValue"'; 855 if (object.enumValue) throw 'incorrect value in "enumValue"';
819 856
820 if (object.exportValue == null) 857 if (object.exportValue == null)
821 throw 'incorrect initialization of "exportValue"'; 858 throw 'incorrect initialization of "exportValue"';
822 object.exportValue = true; 859 object.exportValue = true;
823 if (!object.exportValue) throw 'incorrect value in "exportValue"'; 860 if (!object.exportValue) throw 'incorrect value in "exportValue"';
824 object.exportValue = false; 861 object.exportValue = false;
(...skipping 13 matching lines...) Expand all
838 object.falseValue = false; 875 object.falseValue = false;
839 if (object.falseValue) throw 'incorrect value in "falseValue"'; 876 if (object.falseValue) throw 'incorrect value in "falseValue"';
840 877
841 if (object.finallyValue == null) 878 if (object.finallyValue == null)
842 throw 'incorrect initialization of "finallyValue"'; 879 throw 'incorrect initialization of "finallyValue"';
843 object.finallyValue = true; 880 object.finallyValue = true;
844 if (!object.finallyValue) throw 'incorrect value in "finallyValue"'; 881 if (!object.finallyValue) throw 'incorrect value in "finallyValue"';
845 object.finallyValue = false; 882 object.finallyValue = false;
846 if (object.finallyValue) throw 'incorrect value in "finallyValue"'; 883 if (object.finallyValue) throw 'incorrect value in "finallyValue"';
847 884
848 if (object.forValue == null) 885 if (object.forValue == null) throw 'incorrect initialization of "forValue"';
849 throw 'incorrect initialization of "forValue"';
850 object.forValue = true; 886 object.forValue = true;
851 if (!object.forValue) throw 'incorrect value in "forValue"'; 887 if (!object.forValue) throw 'incorrect value in "forValue"';
852 object.forValue = false; 888 object.forValue = false;
853 if (object.forValue) throw 'incorrect value in "forValue"'; 889 if (object.forValue) throw 'incorrect value in "forValue"';
854 890
855 if (object.functionValue == null) 891 if (object.functionValue == null)
856 throw 'incorrect initialization of "functionValue"'; 892 throw 'incorrect initialization of "functionValue"';
857 object.functionValue = true; 893 object.functionValue = true;
858 if (!object.functionValue) throw 'incorrect value in "functionValue"'; 894 if (!object.functionValue) throw 'incorrect value in "functionValue"';
859 object.functionValue = false; 895 object.functionValue = false;
860 if (object.functionValue) throw 'incorrect value in "functionValue"'; 896 if (object.functionValue) throw 'incorrect value in "functionValue"';
861 897
862 if (object.ifValue == null) 898 if (object.ifValue == null) throw 'incorrect initialization of "ifValue"';
863 throw 'incorrect initialization of "ifValue"';
864 object.ifValue = true; 899 object.ifValue = true;
865 if (!object.ifValue) throw 'incorrect value in "ifValue"'; 900 if (!object.ifValue) throw 'incorrect value in "ifValue"';
866 object.ifValue = false; 901 object.ifValue = false;
867 if (object.ifValue) throw 'incorrect value in "ifValue"'; 902 if (object.ifValue) throw 'incorrect value in "ifValue"';
868 903
869 if (object.implementsValue == null) 904 if (object.implementsValue == null)
870 throw 'incorrect initialization of "implementsValue"'; 905 throw 'incorrect initialization of "implementsValue"';
871 object.implementsValue = true; 906 object.implementsValue = true;
872 if (!object.implementsValue) throw 'incorrect value in "implementsValue"'; 907 if (!object.implementsValue) throw 'incorrect value in "implementsValue"';
873 object.implementsValue = false; 908 object.implementsValue = false;
874 if (object.implementsValue) throw 'incorrect value in "implementsValue"'; 909 if (object.implementsValue) throw 'incorrect value in "implementsValue"';
875 910
876 if (object.importValue == null) 911 if (object.importValue == null)
877 throw 'incorrect initialization of "importValue"'; 912 throw 'incorrect initialization of "importValue"';
878 object.importValue = true; 913 object.importValue = true;
879 if (!object.importValue) throw 'incorrect value in "importValue"'; 914 if (!object.importValue) throw 'incorrect value in "importValue"';
880 object.importValue = false; 915 object.importValue = false;
881 if (object.importValue) throw 'incorrect value in "importValue"'; 916 if (object.importValue) throw 'incorrect value in "importValue"';
882 917
883 if (object.inValue == null) 918 if (object.inValue == null) throw 'incorrect initialization of "inValue"';
884 throw 'incorrect initialization of "inValue"';
885 object.inValue = true; 919 object.inValue = true;
886 if (!object.inValue) throw 'incorrect value in "inValue"'; 920 if (!object.inValue) throw 'incorrect value in "inValue"';
887 object.inValue = false; 921 object.inValue = false;
888 if (object.inValue) throw 'incorrect value in "inValue"'; 922 if (object.inValue) throw 'incorrect value in "inValue"';
889 923
890 if (object.instanceofValue == null) 924 if (object.instanceofValue == null)
891 throw 'incorrect initialization of "instanceofValue"'; 925 throw 'incorrect initialization of "instanceofValue"';
892 object.instanceofValue = true; 926 object.instanceofValue = true;
893 if (!object.instanceofValue) throw 'incorrect value in "instanceofValue"'; 927 if (!object.instanceofValue) throw 'incorrect value in "instanceofValue"';
894 object.instanceofValue = false; 928 object.instanceofValue = false;
895 if (object.instanceofValue) throw 'incorrect value in "instanceofValue"'; 929 if (object.instanceofValue) throw 'incorrect value in "instanceofValue"';
896 930
897 if (object.interfaceValue == null) 931 if (object.interfaceValue == null)
898 throw 'incorrect initialization of "interfaceValue"'; 932 throw 'incorrect initialization of "interfaceValue"';
899 object.interfaceValue = true; 933 object.interfaceValue = true;
900 if (!object.interfaceValue) throw 'incorrect value in "interfaceValue"'; 934 if (!object.interfaceValue) throw 'incorrect value in "interfaceValue"';
901 object.interfaceValue = false; 935 object.interfaceValue = false;
902 if (object.interfaceValue) throw 'incorrect value in "interfaceValue"'; 936 if (object.interfaceValue) throw 'incorrect value in "interfaceValue"';
903 937
904 if (object.letValue == null) 938 if (object.letValue == null) throw 'incorrect initialization of "letValue"';
905 throw 'incorrect initialization of "letValue"';
906 object.letValue = true; 939 object.letValue = true;
907 if (!object.letValue) throw 'incorrect value in "letValue"'; 940 if (!object.letValue) throw 'incorrect value in "letValue"';
908 object.letValue = false; 941 object.letValue = false;
909 if (object.letValue) throw 'incorrect value in "letValue"'; 942 if (object.letValue) throw 'incorrect value in "letValue"';
910 943
911 if (object.newValue == null) 944 if (object.newValue == null) throw 'incorrect initialization of "newValue"';
912 throw 'incorrect initialization of "newValue"';
913 object.newValue = true; 945 object.newValue = true;
914 if (!object.newValue) throw 'incorrect value in "newValue"'; 946 if (!object.newValue) throw 'incorrect value in "newValue"';
915 object.newValue = false; 947 object.newValue = false;
916 if (object.newValue) throw 'incorrect value in "newValue"'; 948 if (object.newValue) throw 'incorrect value in "newValue"';
917 949
918 if (object.nullValue == null) 950 if (object.nullValue == null) throw 'incorrect initialization of "nullValue"';
919 throw 'incorrect initialization of "nullValue"';
920 object.nullValue = true; 951 object.nullValue = true;
921 if (!object.nullValue) throw 'incorrect value in "nullValue"'; 952 if (!object.nullValue) throw 'incorrect value in "nullValue"';
922 object.nullValue = false; 953 object.nullValue = false;
923 if (object.nullValue) throw 'incorrect value in "nullValue"'; 954 if (object.nullValue) throw 'incorrect value in "nullValue"';
924 955
925 if (object.packageValue == null) 956 if (object.packageValue == null)
926 throw 'incorrect initialization of "packageValue"'; 957 throw 'incorrect initialization of "packageValue"';
927 object.packageValue = true; 958 object.packageValue = true;
928 if (!object.packageValue) throw 'incorrect value in "packageValue"'; 959 if (!object.packageValue) throw 'incorrect value in "packageValue"';
929 object.packageValue = false; 960 object.packageValue = false;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
971 object.superValue = false; 1002 object.superValue = false;
972 if (object.superValue) throw 'incorrect value in "superValue"'; 1003 if (object.superValue) throw 'incorrect value in "superValue"';
973 1004
974 if (object.switchValue == null) 1005 if (object.switchValue == null)
975 throw 'incorrect initialization of "switchValue"'; 1006 throw 'incorrect initialization of "switchValue"';
976 object.switchValue = true; 1007 object.switchValue = true;
977 if (!object.switchValue) throw 'incorrect value in "switchValue"'; 1008 if (!object.switchValue) throw 'incorrect value in "switchValue"';
978 object.switchValue = false; 1009 object.switchValue = false;
979 if (object.switchValue) throw 'incorrect value in "switchValue"'; 1010 if (object.switchValue) throw 'incorrect value in "switchValue"';
980 1011
981 if (object.thisValue == null) 1012 if (object.thisValue == null) throw 'incorrect initialization of "thisValue"';
982 throw 'incorrect initialization of "thisValue"';
983 object.thisValue = true; 1013 object.thisValue = true;
984 if (!object.thisValue) throw 'incorrect value in "thisValue"'; 1014 if (!object.thisValue) throw 'incorrect value in "thisValue"';
985 object.thisValue = false; 1015 object.thisValue = false;
986 if (object.thisValue) throw 'incorrect value in "thisValue"'; 1016 if (object.thisValue) throw 'incorrect value in "thisValue"';
987 1017
988 if (object.throwValue == null) 1018 if (object.throwValue == null)
989 throw 'incorrect initialization of "throwValue"'; 1019 throw 'incorrect initialization of "throwValue"';
990 object.throwValue = true; 1020 object.throwValue = true;
991 if (!object.throwValue) throw 'incorrect value in "throwValue"'; 1021 if (!object.throwValue) throw 'incorrect value in "throwValue"';
992 object.throwValue = false; 1022 object.throwValue = false;
993 if (object.throwValue) throw 'incorrect value in "throwValue"'; 1023 if (object.throwValue) throw 'incorrect value in "throwValue"';
994 1024
995 if (object.trueValue == null) 1025 if (object.trueValue == null) throw 'incorrect initialization of "trueValue"';
996 throw 'incorrect initialization of "trueValue"';
997 object.trueValue = true; 1026 object.trueValue = true;
998 if (!object.trueValue) throw 'incorrect value in "trueValue"'; 1027 if (!object.trueValue) throw 'incorrect value in "trueValue"';
999 object.trueValue = false; 1028 object.trueValue = false;
1000 if (object.trueValue) throw 'incorrect value in "trueValue"'; 1029 if (object.trueValue) throw 'incorrect value in "trueValue"';
1001 1030
1002 if (object.tryValue == null) 1031 if (object.tryValue == null) throw 'incorrect initialization of "tryValue"';
1003 throw 'incorrect initialization of "tryValue"';
1004 object.tryValue = true; 1032 object.tryValue = true;
1005 if (!object.tryValue) throw 'incorrect value in "tryValue"'; 1033 if (!object.tryValue) throw 'incorrect value in "tryValue"';
1006 object.tryValue = false; 1034 object.tryValue = false;
1007 if (object.tryValue) throw 'incorrect value in "tryValue"'; 1035 if (object.tryValue) throw 'incorrect value in "tryValue"';
1008 1036
1009 if (object.typeofValue == null) 1037 if (object.typeofValue == null)
1010 throw 'incorrect initialization of "typeofValue"'; 1038 throw 'incorrect initialization of "typeofValue"';
1011 object.typeofValue = true; 1039 object.typeofValue = true;
1012 if (!object.typeofValue) throw 'incorrect value in "typeofValue"'; 1040 if (!object.typeofValue) throw 'incorrect value in "typeofValue"';
1013 object.typeofValue = false; 1041 object.typeofValue = false;
1014 if (object.typeofValue) throw 'incorrect value in "typeofValue"'; 1042 if (object.typeofValue) throw 'incorrect value in "typeofValue"';
1015 1043
1016 if (object.varValue == null) 1044 if (object.varValue == null) throw 'incorrect initialization of "varValue"';
1017 throw 'incorrect initialization of "varValue"';
1018 object.varValue = true; 1045 object.varValue = true;
1019 if (!object.varValue) throw 'incorrect value in "varValue"'; 1046 if (!object.varValue) throw 'incorrect value in "varValue"';
1020 object.varValue = false; 1047 object.varValue = false;
1021 if (object.varValue) throw 'incorrect value in "varValue"'; 1048 if (object.varValue) throw 'incorrect value in "varValue"';
1022 1049
1023 if (object.voidValue == null) 1050 if (object.voidValue == null) throw 'incorrect initialization of "voidValue"';
1024 throw 'incorrect initialization of "voidValue"';
1025 object.voidValue = true; 1051 object.voidValue = true;
1026 if (!object.voidValue) throw 'incorrect value in "voidValue"'; 1052 if (!object.voidValue) throw 'incorrect value in "voidValue"';
1027 object.voidValue = false; 1053 object.voidValue = false;
1028 if (object.voidValue) throw 'incorrect value in "voidValue"'; 1054 if (object.voidValue) throw 'incorrect value in "voidValue"';
1029 1055
1030 if (object.whileValue == null) 1056 if (object.whileValue == null)
1031 throw 'incorrect initialization of "whileValue"'; 1057 throw 'incorrect initialization of "whileValue"';
1032 object.whileValue = true; 1058 object.whileValue = true;
1033 if (!object.whileValue) throw 'incorrect value in "whileValue"'; 1059 if (!object.whileValue) throw 'incorrect value in "whileValue"';
1034 object.whileValue = false; 1060 object.whileValue = false;
1035 if (object.whileValue) throw 'incorrect value in "whileValue"'; 1061 if (object.whileValue) throw 'incorrect value in "whileValue"';
1036 1062
1037 if (object.withValue == null) 1063 if (object.withValue == null) throw 'incorrect initialization of "withValue"';
1038 throw 'incorrect initialization of "withValue"';
1039 object.withValue = true; 1064 object.withValue = true;
1040 if (!object.withValue) throw 'incorrect value in "withValue"'; 1065 if (!object.withValue) throw 'incorrect value in "withValue"';
1041 object.withValue = false; 1066 object.withValue = false;
1042 if (object.withValue) throw 'incorrect value in "withValue"'; 1067 if (object.withValue) throw 'incorrect value in "withValue"';
1043 1068
1044 if (object.yieldValue == null) 1069 if (object.yieldValue == null)
1045 throw 'incorrect initialization of "yieldValue"'; 1070 throw 'incorrect initialization of "yieldValue"';
1046 object.yieldValue = true; 1071 object.yieldValue = true;
1047 if (!object.yieldValue) throw 'incorrect value in "yieldValue"'; 1072 if (!object.yieldValue) throw 'incorrect value in "yieldValue"';
1048 object.yieldValue = false; 1073 object.yieldValue = false;
1049 if (object.yieldValue) throw 'incorrect value in "yieldValue"'; 1074 if (object.yieldValue) throw 'incorrect value in "yieldValue"';
1050 } 1075 }
1051 1076
1052 /// Called multiple times with arguments that are hard to track in type 1077 /// Called multiple times with arguments that are hard to track in type
1053 /// inference making it hard to inline accessors. 1078 /// inference making it hard to inline accessors.
1054 testObjectWeaklyTyped(object) { 1079 testObjectWeaklyTyped(object) {
1055 object = object[0]; 1080 object = object[0];
1056 if (object == 'fisk') return; 1081 if (object == 'fisk') return;
1057 if (object.breakValue == null) 1082 if (object.breakValue == null)
1058 throw 'incorrect initialization of "breakValue"'; 1083 throw 'incorrect initialization of "breakValue"';
1059 object.breakValue = true; 1084 object.breakValue = true;
1060 if (!object.breakValue) throw 'incorrect value in "breakValue"'; 1085 if (!object.breakValue) throw 'incorrect value in "breakValue"';
1061 object.breakValue = false; 1086 object.breakValue = false;
1062 if (object.breakValue) throw 'incorrect value in "breakValue"'; 1087 if (object.breakValue) throw 'incorrect value in "breakValue"';
1063 1088
1064 if (object.caseValue == null) 1089 if (object.caseValue == null) throw 'incorrect initialization of "caseValue"';
1065 throw 'incorrect initialization of "caseValue"';
1066 object.caseValue = true; 1090 object.caseValue = true;
1067 if (!object.caseValue) throw 'incorrect value in "caseValue"'; 1091 if (!object.caseValue) throw 'incorrect value in "caseValue"';
1068 object.caseValue = false; 1092 object.caseValue = false;
1069 if (object.caseValue) throw 'incorrect value in "caseValue"'; 1093 if (object.caseValue) throw 'incorrect value in "caseValue"';
1070 1094
1071 if (object.catchValue == null) 1095 if (object.catchValue == null)
1072 throw 'incorrect initialization of "catchValue"'; 1096 throw 'incorrect initialization of "catchValue"';
1073 object.catchValue = true; 1097 object.catchValue = true;
1074 if (!object.catchValue) throw 'incorrect value in "catchValue"'; 1098 if (!object.catchValue) throw 'incorrect value in "catchValue"';
1075 object.catchValue = false; 1099 object.catchValue = false;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
1110 object.defaultValue = false; 1134 object.defaultValue = false;
1111 if (object.defaultValue) throw 'incorrect value in "defaultValue"'; 1135 if (object.defaultValue) throw 'incorrect value in "defaultValue"';
1112 1136
1113 if (object.deleteValue == null) 1137 if (object.deleteValue == null)
1114 throw 'incorrect initialization of "deleteValue"'; 1138 throw 'incorrect initialization of "deleteValue"';
1115 object.deleteValue = true; 1139 object.deleteValue = true;
1116 if (!object.deleteValue) throw 'incorrect value in "deleteValue"'; 1140 if (!object.deleteValue) throw 'incorrect value in "deleteValue"';
1117 object.deleteValue = false; 1141 object.deleteValue = false;
1118 if (object.deleteValue) throw 'incorrect value in "deleteValue"'; 1142 if (object.deleteValue) throw 'incorrect value in "deleteValue"';
1119 1143
1120 if (object.doValue == null) 1144 if (object.doValue == null) throw 'incorrect initialization of "doValue"';
1121 throw 'incorrect initialization of "doValue"';
1122 object.doValue = true; 1145 object.doValue = true;
1123 if (!object.doValue) throw 'incorrect value in "doValue"'; 1146 if (!object.doValue) throw 'incorrect value in "doValue"';
1124 object.doValue = false; 1147 object.doValue = false;
1125 if (object.doValue) throw 'incorrect value in "doValue"'; 1148 if (object.doValue) throw 'incorrect value in "doValue"';
1126 1149
1127 if (object.elseValue == null) 1150 if (object.elseValue == null) throw 'incorrect initialization of "elseValue"';
1128 throw 'incorrect initialization of "elseValue"';
1129 object.elseValue = true; 1151 object.elseValue = true;
1130 if (!object.elseValue) throw 'incorrect value in "elseValue"'; 1152 if (!object.elseValue) throw 'incorrect value in "elseValue"';
1131 object.elseValue = false; 1153 object.elseValue = false;
1132 if (object.elseValue) throw 'incorrect value in "elseValue"'; 1154 if (object.elseValue) throw 'incorrect value in "elseValue"';
1133 1155
1134 if (object.enumValue == null) 1156 if (object.enumValue == null) throw 'incorrect initialization of "enumValue"';
1135 throw 'incorrect initialization of "enumValue"';
1136 object.enumValue = true; 1157 object.enumValue = true;
1137 if (!object.enumValue) throw 'incorrect value in "enumValue"'; 1158 if (!object.enumValue) throw 'incorrect value in "enumValue"';
1138 object.enumValue = false; 1159 object.enumValue = false;
1139 if (object.enumValue) throw 'incorrect value in "enumValue"'; 1160 if (object.enumValue) throw 'incorrect value in "enumValue"';
1140 1161
1141 if (object.exportValue == null) 1162 if (object.exportValue == null)
1142 throw 'incorrect initialization of "exportValue"'; 1163 throw 'incorrect initialization of "exportValue"';
1143 object.exportValue = true; 1164 object.exportValue = true;
1144 if (!object.exportValue) throw 'incorrect value in "exportValue"'; 1165 if (!object.exportValue) throw 'incorrect value in "exportValue"';
1145 object.exportValue = false; 1166 object.exportValue = false;
(...skipping 13 matching lines...) Expand all
1159 object.falseValue = false; 1180 object.falseValue = false;
1160 if (object.falseValue) throw 'incorrect value in "falseValue"'; 1181 if (object.falseValue) throw 'incorrect value in "falseValue"';
1161 1182
1162 if (object.finallyValue == null) 1183 if (object.finallyValue == null)
1163 throw 'incorrect initialization of "finallyValue"'; 1184 throw 'incorrect initialization of "finallyValue"';
1164 object.finallyValue = true; 1185 object.finallyValue = true;
1165 if (!object.finallyValue) throw 'incorrect value in "finallyValue"'; 1186 if (!object.finallyValue) throw 'incorrect value in "finallyValue"';
1166 object.finallyValue = false; 1187 object.finallyValue = false;
1167 if (object.finallyValue) throw 'incorrect value in "finallyValue"'; 1188 if (object.finallyValue) throw 'incorrect value in "finallyValue"';
1168 1189
1169 if (object.forValue == null) 1190 if (object.forValue == null) throw 'incorrect initialization of "forValue"';
1170 throw 'incorrect initialization of "forValue"';
1171 object.forValue = true; 1191 object.forValue = true;
1172 if (!object.forValue) throw 'incorrect value in "forValue"'; 1192 if (!object.forValue) throw 'incorrect value in "forValue"';
1173 object.forValue = false; 1193 object.forValue = false;
1174 if (object.forValue) throw 'incorrect value in "forValue"'; 1194 if (object.forValue) throw 'incorrect value in "forValue"';
1175 1195
1176 if (object.functionValue == null) 1196 if (object.functionValue == null)
1177 throw 'incorrect initialization of "functionValue"'; 1197 throw 'incorrect initialization of "functionValue"';
1178 object.functionValue = true; 1198 object.functionValue = true;
1179 if (!object.functionValue) throw 'incorrect value in "functionValue"'; 1199 if (!object.functionValue) throw 'incorrect value in "functionValue"';
1180 object.functionValue = false; 1200 object.functionValue = false;
1181 if (object.functionValue) throw 'incorrect value in "functionValue"'; 1201 if (object.functionValue) throw 'incorrect value in "functionValue"';
1182 1202
1183 if (object.ifValue == null) 1203 if (object.ifValue == null) throw 'incorrect initialization of "ifValue"';
1184 throw 'incorrect initialization of "ifValue"';
1185 object.ifValue = true; 1204 object.ifValue = true;
1186 if (!object.ifValue) throw 'incorrect value in "ifValue"'; 1205 if (!object.ifValue) throw 'incorrect value in "ifValue"';
1187 object.ifValue = false; 1206 object.ifValue = false;
1188 if (object.ifValue) throw 'incorrect value in "ifValue"'; 1207 if (object.ifValue) throw 'incorrect value in "ifValue"';
1189 1208
1190 if (object.implementsValue == null) 1209 if (object.implementsValue == null)
1191 throw 'incorrect initialization of "implementsValue"'; 1210 throw 'incorrect initialization of "implementsValue"';
1192 object.implementsValue = true; 1211 object.implementsValue = true;
1193 if (!object.implementsValue) throw 'incorrect value in "implementsValue"'; 1212 if (!object.implementsValue) throw 'incorrect value in "implementsValue"';
1194 object.implementsValue = false; 1213 object.implementsValue = false;
1195 if (object.implementsValue) throw 'incorrect value in "implementsValue"'; 1214 if (object.implementsValue) throw 'incorrect value in "implementsValue"';
1196 1215
1197 if (object.importValue == null) 1216 if (object.importValue == null)
1198 throw 'incorrect initialization of "importValue"'; 1217 throw 'incorrect initialization of "importValue"';
1199 object.importValue = true; 1218 object.importValue = true;
1200 if (!object.importValue) throw 'incorrect value in "importValue"'; 1219 if (!object.importValue) throw 'incorrect value in "importValue"';
1201 object.importValue = false; 1220 object.importValue = false;
1202 if (object.importValue) throw 'incorrect value in "importValue"'; 1221 if (object.importValue) throw 'incorrect value in "importValue"';
1203 1222
1204 if (object.inValue == null) 1223 if (object.inValue == null) throw 'incorrect initialization of "inValue"';
1205 throw 'incorrect initialization of "inValue"';
1206 object.inValue = true; 1224 object.inValue = true;
1207 if (!object.inValue) throw 'incorrect value in "inValue"'; 1225 if (!object.inValue) throw 'incorrect value in "inValue"';
1208 object.inValue = false; 1226 object.inValue = false;
1209 if (object.inValue) throw 'incorrect value in "inValue"'; 1227 if (object.inValue) throw 'incorrect value in "inValue"';
1210 1228
1211 if (object.instanceofValue == null) 1229 if (object.instanceofValue == null)
1212 throw 'incorrect initialization of "instanceofValue"'; 1230 throw 'incorrect initialization of "instanceofValue"';
1213 object.instanceofValue = true; 1231 object.instanceofValue = true;
1214 if (!object.instanceofValue) throw 'incorrect value in "instanceofValue"'; 1232 if (!object.instanceofValue) throw 'incorrect value in "instanceofValue"';
1215 object.instanceofValue = false; 1233 object.instanceofValue = false;
1216 if (object.instanceofValue) throw 'incorrect value in "instanceofValue"'; 1234 if (object.instanceofValue) throw 'incorrect value in "instanceofValue"';
1217 1235
1218 if (object.interfaceValue == null) 1236 if (object.interfaceValue == null)
1219 throw 'incorrect initialization of "interfaceValue"'; 1237 throw 'incorrect initialization of "interfaceValue"';
1220 object.interfaceValue = true; 1238 object.interfaceValue = true;
1221 if (!object.interfaceValue) throw 'incorrect value in "interfaceValue"'; 1239 if (!object.interfaceValue) throw 'incorrect value in "interfaceValue"';
1222 object.interfaceValue = false; 1240 object.interfaceValue = false;
1223 if (object.interfaceValue) throw 'incorrect value in "interfaceValue"'; 1241 if (object.interfaceValue) throw 'incorrect value in "interfaceValue"';
1224 1242
1225 if (object.letValue == null) 1243 if (object.letValue == null) throw 'incorrect initialization of "letValue"';
1226 throw 'incorrect initialization of "letValue"';
1227 object.letValue = true; 1244 object.letValue = true;
1228 if (!object.letValue) throw 'incorrect value in "letValue"'; 1245 if (!object.letValue) throw 'incorrect value in "letValue"';
1229 object.letValue = false; 1246 object.letValue = false;
1230 if (object.letValue) throw 'incorrect value in "letValue"'; 1247 if (object.letValue) throw 'incorrect value in "letValue"';
1231 1248
1232 if (object.newValue == null) 1249 if (object.newValue == null) throw 'incorrect initialization of "newValue"';
1233 throw 'incorrect initialization of "newValue"';
1234 object.newValue = true; 1250 object.newValue = true;
1235 if (!object.newValue) throw 'incorrect value in "newValue"'; 1251 if (!object.newValue) throw 'incorrect value in "newValue"';
1236 object.newValue = false; 1252 object.newValue = false;
1237 if (object.newValue) throw 'incorrect value in "newValue"'; 1253 if (object.newValue) throw 'incorrect value in "newValue"';
1238 1254
1239 if (object.nullValue == null) 1255 if (object.nullValue == null) throw 'incorrect initialization of "nullValue"';
1240 throw 'incorrect initialization of "nullValue"';
1241 object.nullValue = true; 1256 object.nullValue = true;
1242 if (!object.nullValue) throw 'incorrect value in "nullValue"'; 1257 if (!object.nullValue) throw 'incorrect value in "nullValue"';
1243 object.nullValue = false; 1258 object.nullValue = false;
1244 if (object.nullValue) throw 'incorrect value in "nullValue"'; 1259 if (object.nullValue) throw 'incorrect value in "nullValue"';
1245 1260
1246 if (object.packageValue == null) 1261 if (object.packageValue == null)
1247 throw 'incorrect initialization of "packageValue"'; 1262 throw 'incorrect initialization of "packageValue"';
1248 object.packageValue = true; 1263 object.packageValue = true;
1249 if (!object.packageValue) throw 'incorrect value in "packageValue"'; 1264 if (!object.packageValue) throw 'incorrect value in "packageValue"';
1250 object.packageValue = false; 1265 object.packageValue = false;
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1292 object.superValue = false; 1307 object.superValue = false;
1293 if (object.superValue) throw 'incorrect value in "superValue"'; 1308 if (object.superValue) throw 'incorrect value in "superValue"';
1294 1309
1295 if (object.switchValue == null) 1310 if (object.switchValue == null)
1296 throw 'incorrect initialization of "switchValue"'; 1311 throw 'incorrect initialization of "switchValue"';
1297 object.switchValue = true; 1312 object.switchValue = true;
1298 if (!object.switchValue) throw 'incorrect value in "switchValue"'; 1313 if (!object.switchValue) throw 'incorrect value in "switchValue"';
1299 object.switchValue = false; 1314 object.switchValue = false;
1300 if (object.switchValue) throw 'incorrect value in "switchValue"'; 1315 if (object.switchValue) throw 'incorrect value in "switchValue"';
1301 1316
1302 if (object.thisValue == null) 1317 if (object.thisValue == null) throw 'incorrect initialization of "thisValue"';
1303 throw 'incorrect initialization of "thisValue"';
1304 object.thisValue = true; 1318 object.thisValue = true;
1305 if (!object.thisValue) throw 'incorrect value in "thisValue"'; 1319 if (!object.thisValue) throw 'incorrect value in "thisValue"';
1306 object.thisValue = false; 1320 object.thisValue = false;
1307 if (object.thisValue) throw 'incorrect value in "thisValue"'; 1321 if (object.thisValue) throw 'incorrect value in "thisValue"';
1308 1322
1309 if (object.throwValue == null) 1323 if (object.throwValue == null)
1310 throw 'incorrect initialization of "throwValue"'; 1324 throw 'incorrect initialization of "throwValue"';
1311 object.throwValue = true; 1325 object.throwValue = true;
1312 if (!object.throwValue) throw 'incorrect value in "throwValue"'; 1326 if (!object.throwValue) throw 'incorrect value in "throwValue"';
1313 object.throwValue = false; 1327 object.throwValue = false;
1314 if (object.throwValue) throw 'incorrect value in "throwValue"'; 1328 if (object.throwValue) throw 'incorrect value in "throwValue"';
1315 1329
1316 if (object.trueValue == null) 1330 if (object.trueValue == null) throw 'incorrect initialization of "trueValue"';
1317 throw 'incorrect initialization of "trueValue"';
1318 object.trueValue = true; 1331 object.trueValue = true;
1319 if (!object.trueValue) throw 'incorrect value in "trueValue"'; 1332 if (!object.trueValue) throw 'incorrect value in "trueValue"';
1320 object.trueValue = false; 1333 object.trueValue = false;
1321 if (object.trueValue) throw 'incorrect value in "trueValue"'; 1334 if (object.trueValue) throw 'incorrect value in "trueValue"';
1322 1335
1323 if (object.tryValue == null) 1336 if (object.tryValue == null) throw 'incorrect initialization of "tryValue"';
1324 throw 'incorrect initialization of "tryValue"';
1325 object.tryValue = true; 1337 object.tryValue = true;
1326 if (!object.tryValue) throw 'incorrect value in "tryValue"'; 1338 if (!object.tryValue) throw 'incorrect value in "tryValue"';
1327 object.tryValue = false; 1339 object.tryValue = false;
1328 if (object.tryValue) throw 'incorrect value in "tryValue"'; 1340 if (object.tryValue) throw 'incorrect value in "tryValue"';
1329 1341
1330 if (object.typeofValue == null) 1342 if (object.typeofValue == null)
1331 throw 'incorrect initialization of "typeofValue"'; 1343 throw 'incorrect initialization of "typeofValue"';
1332 object.typeofValue = true; 1344 object.typeofValue = true;
1333 if (!object.typeofValue) throw 'incorrect value in "typeofValue"'; 1345 if (!object.typeofValue) throw 'incorrect value in "typeofValue"';
1334 object.typeofValue = false; 1346 object.typeofValue = false;
1335 if (object.typeofValue) throw 'incorrect value in "typeofValue"'; 1347 if (object.typeofValue) throw 'incorrect value in "typeofValue"';
1336 1348
1337 if (object.varValue == null) 1349 if (object.varValue == null) throw 'incorrect initialization of "varValue"';
1338 throw 'incorrect initialization of "varValue"';
1339 object.varValue = true; 1350 object.varValue = true;
1340 if (!object.varValue) throw 'incorrect value in "varValue"'; 1351 if (!object.varValue) throw 'incorrect value in "varValue"';
1341 object.varValue = false; 1352 object.varValue = false;
1342 if (object.varValue) throw 'incorrect value in "varValue"'; 1353 if (object.varValue) throw 'incorrect value in "varValue"';
1343 1354
1344 if (object.voidValue == null) 1355 if (object.voidValue == null) throw 'incorrect initialization of "voidValue"';
1345 throw 'incorrect initialization of "voidValue"';
1346 object.voidValue = true; 1356 object.voidValue = true;
1347 if (!object.voidValue) throw 'incorrect value in "voidValue"'; 1357 if (!object.voidValue) throw 'incorrect value in "voidValue"';
1348 object.voidValue = false; 1358 object.voidValue = false;
1349 if (object.voidValue) throw 'incorrect value in "voidValue"'; 1359 if (object.voidValue) throw 'incorrect value in "voidValue"';
1350 1360
1351 if (object.whileValue == null) 1361 if (object.whileValue == null)
1352 throw 'incorrect initialization of "whileValue"'; 1362 throw 'incorrect initialization of "whileValue"';
1353 object.whileValue = true; 1363 object.whileValue = true;
1354 if (!object.whileValue) throw 'incorrect value in "whileValue"'; 1364 if (!object.whileValue) throw 'incorrect value in "whileValue"';
1355 object.whileValue = false; 1365 object.whileValue = false;
1356 if (object.whileValue) throw 'incorrect value in "whileValue"'; 1366 if (object.whileValue) throw 'incorrect value in "whileValue"';
1357 1367
1358 if (object.withValue == null) 1368 if (object.withValue == null) throw 'incorrect initialization of "withValue"';
1359 throw 'incorrect initialization of "withValue"';
1360 object.withValue = true; 1369 object.withValue = true;
1361 if (!object.withValue) throw 'incorrect value in "withValue"'; 1370 if (!object.withValue) throw 'incorrect value in "withValue"';
1362 object.withValue = false; 1371 object.withValue = false;
1363 if (object.withValue) throw 'incorrect value in "withValue"'; 1372 if (object.withValue) throw 'incorrect value in "withValue"';
1364 1373
1365 if (object.yieldValue == null) 1374 if (object.yieldValue == null)
1366 throw 'incorrect initialization of "yieldValue"'; 1375 throw 'incorrect initialization of "yieldValue"';
1367 object.yieldValue = true; 1376 object.yieldValue = true;
1368 if (!object.yieldValue) throw 'incorrect value in "yieldValue"'; 1377 if (!object.yieldValue) throw 'incorrect value in "yieldValue"';
1369 object.yieldValue = false; 1378 object.yieldValue = false;
1370 if (object.yieldValue) throw 'incorrect value in "yieldValue"'; 1379 if (object.yieldValue) throw 'incorrect value in "yieldValue"';
1371 } 1380 }
1372 1381
1373 NativeClassWithOddNames makeNativeClassWithOddNames() native; 1382 NativeClassWithOddNames makeNativeClassWithOddNames() native ;
1374 1383
1375 setup() native """ 1384 setup() native """
1376 function NativeClassWithOddNames() {} 1385 function NativeClassWithOddNames() {}
1377 makeNativeClassWithOddNames = function() { return new NativeClassWithOddNames; } 1386 makeNativeClassWithOddNames = function() { return new NativeClassWithOddNames; }
1378 """; 1387 """;
1379 1388
1380 main() { 1389 main() {
1381 setup(); 1390 setup();
1382 var object = makeNativeClassWithOddNames(); 1391 var object = makeNativeClassWithOddNames();
1383 object.testMyFields(); 1392 object.testMyFields();
1384 testObjectStronglyTyped(object); 1393 testObjectStronglyTyped(object);
1385 testObjectWeaklyTyped([object]); 1394 testObjectWeaklyTyped([object]);
1386 testObjectWeaklyTyped(['fisk']); 1395 testObjectWeaklyTyped(['fisk']);
1387 testObjectWeaklyTyped([new ClassWithOddNames()..testMyFields()]); 1396 testObjectWeaklyTyped([new ClassWithOddNames()..testMyFields()]);
1388 } 1397 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698