How to use argsTest method in Cypress

Best JavaScript code snippet using cypress

ArgsTest.js

Source:ArgsTest.js Github

copy

Full Screen

1/* start module: ArgsTest */2$pyjs.loaded_modules['ArgsTest'] = function (__mod_name__) {3 if($pyjs.loaded_modules['ArgsTest'].__was_initialized__) return $pyjs.loaded_modules['ArgsTest'];4 var $m = $pyjs.loaded_modules["ArgsTest"];5 $m.__repr__ = function() { return "<module: ArgsTest>"; };6 $m.__was_initialized__ = true;7 if ((__mod_name__ === null) || (typeof __mod_name__ == 'undefined')) __mod_name__ = 'ArgsTest';8 $m.__name__ = __mod_name__;9 $m.__track_lines__ = new Array();10 try {11 $m.__track_lines__[1] = 'ArgsTest.py, line 1:\n from UnitTest import UnitTest';12 $m.__track_lines__[3] = 'ArgsTest.py, line 3:\n def aArgs(*args):';13 $m.__track_lines__[4] = 'ArgsTest.py, line 4:\n return args';14 $m.__track_lines__[6] = 'ArgsTest.py, line 6:\n def ftest(a, b):';15 $m.__track_lines__[7] = 'ArgsTest.py, line 7:\n return [a, b]';16 $m.__track_lines__[9] = 'ArgsTest.py, line 9:\n class ArgsTest(UnitTest):';17 $m.__track_lines__[11] = 'ArgsTest.py, line 11:\n def testNaming1(self):';18 $m.__track_lines__[12] = 'ArgsTest.py, line 12:\n values = ftest(1, 2)';19 $m.__track_lines__[13] = 'ArgsTest.py, line 13:\n self.assertEquals(values[0], 1)';20 $m.__track_lines__[14] = 'ArgsTest.py, line 14:\n self.assertEquals(values[1], 2)';21 $m.__track_lines__[16] = 'ArgsTest.py, line 16:\n def testNaming2(self):';22 $m.__track_lines__[17] = 'ArgsTest.py, line 17:\n values = ftest(a=1, b=2)';23 $m.__track_lines__[18] = 'ArgsTest.py, line 18:\n self.assertEquals(values[0], 1)';24 $m.__track_lines__[19] = 'ArgsTest.py, line 19:\n self.assertEquals(values[1], 2)';25 $m.__track_lines__[21] = 'ArgsTest.py, line 21:\n def testNaming3(self):';26 $m.__track_lines__[22] = 'ArgsTest.py, line 22:\n values = ftest(1, b=2)';27 $m.__track_lines__[23] = 'ArgsTest.py, line 23:\n self.assertEquals(values[0], 1)';28 $m.__track_lines__[24] = 'ArgsTest.py, line 24:\n self.assertEquals(values[1], 2)';29 $m.__track_lines__[26] = 'ArgsTest.py, line 26:\n def testNaming4(self):';30 $m.__track_lines__[27] = 'ArgsTest.py, line 27:\n exc_raised = False';31 $m.__track_lines__[28] = 'ArgsTest.py, line 28:\n try:';32 $m.__track_lines__[29] = 'ArgsTest.py, line 29:\n values = ftest(1, c=2)';33 $m.__track_lines__[31] = 'ArgsTest.py, line 31:\n exc_raised = True';34 $m.__track_lines__[32] = 'ArgsTest.py, line 32:\n self.assertTrue(exc_raised, "TypeError \'c\' unexpected arg not raised")';35 $m.__track_lines__[34] = 'ArgsTest.py, line 34:\n def testNaming5(self):';36 $m.__track_lines__[35] = 'ArgsTest.py, line 35:\n exc_raised = False';37 $m.__track_lines__[36] = 'ArgsTest.py, line 36:\n try:';38 $m.__track_lines__[37] = 'ArgsTest.py, line 37:\n values = ftest()';39 $m.__track_lines__[39] = 'ArgsTest.py, line 39:\n exc_raised = True';40 $m.__track_lines__[40] = 'ArgsTest.py, line 40:\n self.assertTrue(exc_raised, "TypeError \'ftest() takes exactly 2 arguments (0 given)\' not raised")';41 $m.__track_lines__[42] = 'ArgsTest.py, line 42:\n def testSimpleCall(self):';42 $m.__track_lines__[43] = 'ArgsTest.py, line 43:\n values = foo(1, 2, 3)';43 $m.__track_lines__[44] = 'ArgsTest.py, line 44:\n self.assertEquals(values[0], 1)';44 $m.__track_lines__[45] = 'ArgsTest.py, line 45:\n self.assertEquals(values[1], 2)';45 $m.__track_lines__[46] = 'ArgsTest.py, line 46:\n self.assertEquals(values[2], 3)';46 $m.__track_lines__[48] = 'ArgsTest.py, line 48:\n values = foo2(1, 2, 3)';47 $m.__track_lines__[49] = 'ArgsTest.py, line 49:\n self.assertEquals(values[0], 1)';48 $m.__track_lines__[50] = 'ArgsTest.py, line 50:\n self.assertEquals(values[1], 2)';49 $m.__track_lines__[51] = 'ArgsTest.py, line 51:\n self.assertEquals(values[2], 3)';50 $m.__track_lines__[53] = 'ArgsTest.py, line 53:\n def testKeywordCall1(self):';51 $m.__track_lines__[54] = 'ArgsTest.py, line 54:\n values = foo2(c=3, b=2, a=1)';52 $m.__track_lines__[55] = 'ArgsTest.py, line 55:\n self.assertEquals(values[0], 1)';53 $m.__track_lines__[56] = 'ArgsTest.py, line 56:\n self.assertEquals(values[1], 2)';54 $m.__track_lines__[57] = 'ArgsTest.py, line 57:\n self.assertEquals(values[2], 3)';55 $m.__track_lines__[59] = 'ArgsTest.py, line 59:\n def testKeywordCall2(self):';56 $m.__track_lines__[60] = 'ArgsTest.py, line 60:\n values = foo2(b=2, a=1, c=3)';57 $m.__track_lines__[61] = 'ArgsTest.py, line 61:\n self.assertEquals(values[0], 1)';58 $m.__track_lines__[62] = 'ArgsTest.py, line 62:\n self.assertEquals(values[1], 2)';59 $m.__track_lines__[63] = 'ArgsTest.py, line 63:\n self.assertEquals(values[2], 3)';60 $m.__track_lines__[65] = 'ArgsTest.py, line 65:\n def testKeywordCall3(self):';61 $m.__track_lines__[66] = 'ArgsTest.py, line 66:\n values = foo2(1, c=3)';62 $m.__track_lines__[67] = 'ArgsTest.py, line 67:\n self.assertEquals(values[0], 1)';63 $m.__track_lines__[68] = 'ArgsTest.py, line 68:\n self.assertEquals(values[1], None)';64 $m.__track_lines__[69] = 'ArgsTest.py, line 69:\n self.assertEquals(values[2], 3)';65 $m.__track_lines__[71] = 'ArgsTest.py, line 71:\n def testKeywordCall4(self):';66 $m.__track_lines__[72] = 'ArgsTest.py, line 72:\n values = foo2()';67 $m.__track_lines__[73] = 'ArgsTest.py, line 73:\n self.assertEquals(values[0], None)';68 $m.__track_lines__[74] = 'ArgsTest.py, line 74:\n self.assertEquals(values[1], None)';69 $m.__track_lines__[75] = 'ArgsTest.py, line 75:\n self.assertEquals(values[2], None)';70 $m.__track_lines__[77] = 'ArgsTest.py, line 77:\n def testKeywordCall5(self):';71 $m.__track_lines__[78] = 'ArgsTest.py, line 78:\n values = foo2(c=True)';72 $m.__track_lines__[79] = 'ArgsTest.py, line 79:\n self.assertEquals(values[0], None)';73 $m.__track_lines__[80] = 'ArgsTest.py, line 80:\n self.assertEquals(values[1], None)';74 $m.__track_lines__[81] = 'ArgsTest.py, line 81:\n self.assertEquals(values[2], True)';75 $m.__track_lines__[83] = 'ArgsTest.py, line 83:\n def testStarArgs(self):';76 $m.__track_lines__[84] = 'ArgsTest.py, line 84:\n args = (1,2)';77 $m.__track_lines__[85] = 'ArgsTest.py, line 85:\n res = aArgs(*args)';78 $m.__track_lines__[86] = 'ArgsTest.py, line 86:\n self.assertEquals(args, res)';79 $m.__track_lines__[88] = 'ArgsTest.py, line 88:\n args = "123"';80 $m.__track_lines__[89] = 'ArgsTest.py, line 89:\n try:';81 $m.__track_lines__[90] = 'ArgsTest.py, line 90:\n res = aArgs(*args)';82 $m.__track_lines__[91] = 'ArgsTest.py, line 91:\n called = True';83 $m.__track_lines__[92] = 'ArgsTest.py, line 92:\n exc = None';84 $m.__track_lines__[94] = 'ArgsTest.py, line 94:\n called = False';85 $m.__track_lines__[95] = 'ArgsTest.py, line 95:\n exc = e';86 $m.__track_lines__[99] = 'ArgsTest.py, line 99:\n self.assertTrue(called,';87 $m.__track_lines__[101] = 'ArgsTest.py, line 101:\n self.assertEquals(res, ("1", "2", "3"))';88 $m.__track_lines__[104] = 'ArgsTest.py, line 104:\n args = 1';89 $m.__track_lines__[105] = 'ArgsTest.py, line 105:\n try:';90 $m.__track_lines__[106] = 'ArgsTest.py, line 106:\n res = aArgs(*args)';91 $m.__track_lines__[107] = 'ArgsTest.py, line 107:\n called = True';92 $m.__track_lines__[109] = 'ArgsTest.py, line 109:\n called = False';93 $m.__track_lines__[111] = 'ArgsTest.py, line 111:\n self.assertFalse(called,';94 $m.__track_lines__[115] = 'ArgsTest.py, line 115:\n args = (1,)';95 $m.__track_lines__[116] = 'ArgsTest.py, line 116:\n res = aArgs(*args)';96 $m.__track_lines__[117] = 'ArgsTest.py, line 117:\n self.assertEquals(args, res)';97 $m.__track_lines__[119] = 'ArgsTest.py, line 119:\n args = (1,)';98 $m.__track_lines__[120] = 'ArgsTest.py, line 120:\n res = aArgs(args)';99 $m.__track_lines__[121] = 'ArgsTest.py, line 121:\n self.assertEquals((args,), res)';100 $m.__track_lines__[124] = 'ArgsTest.py, line 124:\n def testDefaultValuesCall(self):';101 $m.__track_lines__[125] = 'ArgsTest.py, line 125:\n values = foo3(b=7)';102 $m.__track_lines__[126] = 'ArgsTest.py, line 126:\n self.assertEquals(values[0], 1)';103 $m.__track_lines__[127] = 'ArgsTest.py, line 127:\n self.assertEquals(values[1], 7)';104 $m.__track_lines__[128] = 'ArgsTest.py, line 128:\n self.assertEquals(values[2], 3)';105 $m.__track_lines__[130] = 'ArgsTest.py, line 130:\n values = foo3(a=9)';106 $m.__track_lines__[131] = 'ArgsTest.py, line 131:\n self.assertEquals(values[0], 9)';107 $m.__track_lines__[132] = 'ArgsTest.py, line 132:\n self.assertEquals(values[1], 2)';108 $m.__track_lines__[133] = 'ArgsTest.py, line 133:\n self.assertEquals(values[2], 3)';109 $m.__track_lines__[135] = 'ArgsTest.py, line 135:\n values = foo3()';110 $m.__track_lines__[136] = 'ArgsTest.py, line 136:\n self.assertEquals(values[0], 1)';111 $m.__track_lines__[137] = 'ArgsTest.py, line 137:\n self.assertEquals(values[1], 2)';112 $m.__track_lines__[138] = 'ArgsTest.py, line 138:\n self.assertEquals(values[2], 3)';113 $m.__track_lines__[140] = 'ArgsTest.py, line 140:\n def testVarargsCall(self):';114 $m.__track_lines__[141] = 'ArgsTest.py, line 141:\n values = foo4(9, 8, 7, 2, 3, 4)';115 $m.__track_lines__[142] = 'ArgsTest.py, line 142:\n self.assertEquals(values[0], 9)';116 $m.__track_lines__[143] = 'ArgsTest.py, line 143:\n self.assertEquals(values[1], 8)';117 $m.__track_lines__[144] = 'ArgsTest.py, line 144:\n self.assertEquals(values[2], 7)';118 $m.__track_lines__[145] = 'ArgsTest.py, line 145:\n self.assertEquals(values[3][0], 2)';119 $m.__track_lines__[146] = 'ArgsTest.py, line 146:\n self.assertEquals(values[3][1], 3)';120 $m.__track_lines__[147] = 'ArgsTest.py, line 147:\n self.assertEquals(values[3][2], 4)';121 $m.__track_lines__[149] = 'ArgsTest.py, line 149:\n values = foo4(9, 8, 7, 3, 2, 1)';122 $m.__track_lines__[150] = 'ArgsTest.py, line 150:\n self.assertEquals(values[0], 9)';123 $m.__track_lines__[151] = 'ArgsTest.py, line 151:\n self.assertEquals(values[1], 8)';124 $m.__track_lines__[152] = 'ArgsTest.py, line 152:\n self.assertEquals(values[2], 7)';125 $m.__track_lines__[153] = 'ArgsTest.py, line 153:\n self.assertEquals(values[3][0], 3)';126 $m.__track_lines__[154] = 'ArgsTest.py, line 154:\n self.assertEquals(values[3][1], 2)';127 $m.__track_lines__[155] = 'ArgsTest.py, line 155:\n self.assertEquals(values[3][2], 1)';128 $m.__track_lines__[157] = 'ArgsTest.py, line 157:\n def testKwargsCall(self):';129 $m.__track_lines__[158] = 'ArgsTest.py, line 158:\n values = foo5(9, 8, 7, x=5, y=7)';130 $m.__track_lines__[159] = 'ArgsTest.py, line 159:\n self.assertEquals(values[0], 9)';131 $m.__track_lines__[160] = 'ArgsTest.py, line 160:\n self.assertEquals(values[1], 8)';132 $m.__track_lines__[161] = 'ArgsTest.py, line 161:\n self.assertEquals(values[2], 7)';133 $m.__track_lines__[162] = 'ArgsTest.py, line 162:\n self.assertEquals(values[3]["x"], 5)';134 $m.__track_lines__[163] = 'ArgsTest.py, line 163:\n self.assertEquals(values[3]["y"], 7)';135 $m.__track_lines__[165] = 'ArgsTest.py, line 165:\n def testComboCall(self):';136 $m.__track_lines__[166] = 'ArgsTest.py, line 166:\n values = foo6(9, 8, 7, 1, 2, 3, x=4, y=5)';137 $m.__track_lines__[167] = 'ArgsTest.py, line 167:\n self.assertEquals(values[0], 9)';138 $m.__track_lines__[168] = 'ArgsTest.py, line 168:\n self.assertEquals(values[1], 8)';139 $m.__track_lines__[169] = 'ArgsTest.py, line 169:\n self.assertEquals(values[2], 7)';140 $m.__track_lines__[170] = 'ArgsTest.py, line 170:\n self.assertEquals(values[3][0], 1)';141 $m.__track_lines__[171] = 'ArgsTest.py, line 171:\n self.assertEquals(values[3][1], 2)';142 $m.__track_lines__[172] = 'ArgsTest.py, line 172:\n self.assertEquals(values[3][2], 3)';143 $m.__track_lines__[173] = 'ArgsTest.py, line 173:\n self.assertEquals(values[4]["x"], 4)';144 $m.__track_lines__[174] = 'ArgsTest.py, line 174:\n self.assertEquals(values[4]["y"], 5)';145 $m.__track_lines__[176] = 'ArgsTest.py, line 176:\n def testEdgeCall(self):';146 $m.__track_lines__[177] = 'ArgsTest.py, line 177:\n values = foo7(1,2,3,b=2)';147 $m.__track_lines__[178] = 'ArgsTest.py, line 178:\n self.assertEqual(values[0], 1)';148 $m.__track_lines__[179] = 'ArgsTest.py, line 179:\n self.assertEqual(values[1], (2,3))';149 $m.__track_lines__[180] = "ArgsTest.py, line 180:\n self.assertEqual(values[2], {'b':2})";150 $m.__track_lines__[182] = "ArgsTest.py, line 182:\n values = foo7(1, 2, 3, {'b':2})";151 $m.__track_lines__[183] = 'ArgsTest.py, line 183:\n self.assertEqual(values[0], 1)';152 $m.__track_lines__[184] = "ArgsTest.py, line 184:\n self.assertEqual(values[1], (2,3,{'b':2}))";153 $m.__track_lines__[185] = 'ArgsTest.py, line 185:\n self.assertEqual(values[2], {})';154 $m.__track_lines__[187] = 'ArgsTest.py, line 187:\n vaules = foo8(1, b=2)';155 $m.__track_lines__[188] = 'ArgsTest.py, line 188:\n self.assertEqual(vaules[0], 1)';156 $m.__track_lines__[189] = "ArgsTest.py, line 189:\n self.assertEqual(vaules[1], {'b':2})";157 $m.__track_lines__[191] = "ArgsTest.py, line 191:\n vaules = foo8({'b':2})";158 $m.__track_lines__[192] = "ArgsTest.py, line 192:\n self.assertEqual(vaules[0], {'b':2})";159 $m.__track_lines__[193] = 'ArgsTest.py, line 193:\n self.assertEqual(vaules[1], {})';160 $m.__track_lines__[195] = 'ArgsTest.py, line 195:\n def testSimpleCtorCall(self):';161 $m.__track_lines__[196] = 'ArgsTest.py, line 196:\n values = ArgsTestClass_foo(1, 2, 3).x';162 $m.__track_lines__[197] = 'ArgsTest.py, line 197:\n self.assertEquals(values[0], 1)';163 $m.__track_lines__[198] = 'ArgsTest.py, line 198:\n self.assertEquals(values[1], 2)';164 $m.__track_lines__[199] = 'ArgsTest.py, line 199:\n self.assertEquals(values[2], 3)';165 $m.__track_lines__[201] = 'ArgsTest.py, line 201:\n values = ArgsTestClass_foo2(1, 2, 3).x';166 $m.__track_lines__[202] = 'ArgsTest.py, line 202:\n self.assertEquals(values[0], 1)';167 $m.__track_lines__[203] = 'ArgsTest.py, line 203:\n self.assertEquals(values[1], 2)';168 $m.__track_lines__[204] = 'ArgsTest.py, line 204:\n self.assertEquals(values[2], 3)';169 $m.__track_lines__[206] = 'ArgsTest.py, line 206:\n def testKeywordCtorCall(self):';170 $m.__track_lines__[207] = 'ArgsTest.py, line 207:\n values = ArgsTestClass_foo2(c=3, b=2, a=1).x';171 $m.__track_lines__[208] = 'ArgsTest.py, line 208:\n self.assertEquals(values[0], 1)';172 $m.__track_lines__[209] = 'ArgsTest.py, line 209:\n self.assertEquals(values[1], 2)';173 $m.__track_lines__[210] = 'ArgsTest.py, line 210:\n self.assertEquals(values[2], 3)';174 $m.__track_lines__[212] = 'ArgsTest.py, line 212:\n values = ArgsTestClass_foo2(b=2, a=1, c=3).x';175 $m.__track_lines__[213] = 'ArgsTest.py, line 213:\n self.assertEquals(values[0], 1)';176 $m.__track_lines__[214] = 'ArgsTest.py, line 214:\n self.assertEquals(values[1], 2)';177 $m.__track_lines__[215] = 'ArgsTest.py, line 215:\n self.assertEquals(values[2], 3)';178 $m.__track_lines__[217] = 'ArgsTest.py, line 217:\n values = ArgsTestClass_foo2().x';179 $m.__track_lines__[218] = 'ArgsTest.py, line 218:\n self.assertEquals(values[0], None)';180 $m.__track_lines__[219] = 'ArgsTest.py, line 219:\n self.assertEquals(values[1], None)';181 $m.__track_lines__[220] = 'ArgsTest.py, line 220:\n self.assertEquals(values[2], None)';182 $m.__track_lines__[222] = 'ArgsTest.py, line 222:\n values = ArgsTestClass_foo2(c=True).x';183 $m.__track_lines__[223] = 'ArgsTest.py, line 223:\n self.assertEquals(values[0], None)';184 $m.__track_lines__[224] = 'ArgsTest.py, line 224:\n self.assertEquals(values[1], None)';185 $m.__track_lines__[225] = 'ArgsTest.py, line 225:\n self.assertEquals(values[2], True)';186 $m.__track_lines__[228] = 'ArgsTest.py, line 228:\n def testDefaultValuesCtorCall(self):';187 $m.__track_lines__[229] = 'ArgsTest.py, line 229:\n values = ArgsTestClass_foo3(b=7).x';188 $m.__track_lines__[230] = 'ArgsTest.py, line 230:\n self.assertEquals(values[0], 1)';189 $m.__track_lines__[231] = 'ArgsTest.py, line 231:\n self.assertEquals(values[1], 7)';190 $m.__track_lines__[232] = 'ArgsTest.py, line 232:\n self.assertEquals(values[2], 3)';191 $m.__track_lines__[234] = 'ArgsTest.py, line 234:\n values = ArgsTestClass_foo3(a=9).x';192 $m.__track_lines__[235] = 'ArgsTest.py, line 235:\n self.assertEquals(values[0], 9)';193 $m.__track_lines__[236] = 'ArgsTest.py, line 236:\n self.assertEquals(values[1], 2)';194 $m.__track_lines__[237] = 'ArgsTest.py, line 237:\n self.assertEquals(values[2], 3)';195 $m.__track_lines__[239] = 'ArgsTest.py, line 239:\n values = ArgsTestClass_foo3().x';196 $m.__track_lines__[240] = 'ArgsTest.py, line 240:\n self.assertEquals(values[0], 1)';197 $m.__track_lines__[241] = 'ArgsTest.py, line 241:\n self.assertEquals(values[1], 2)';198 $m.__track_lines__[242] = 'ArgsTest.py, line 242:\n self.assertEquals(values[2], 3)';199 $m.__track_lines__[244] = 'ArgsTest.py, line 244:\n def testVarargsCtorCall(self):';200 $m.__track_lines__[245] = 'ArgsTest.py, line 245:\n values = ArgsTestClass_foo4(9, 8, 7, 2, 3, 4).x';201 $m.__track_lines__[246] = 'ArgsTest.py, line 246:\n self.assertEquals(values[0], 9)';202 $m.__track_lines__[247] = 'ArgsTest.py, line 247:\n self.assertEquals(values[1], 8)';203 $m.__track_lines__[248] = 'ArgsTest.py, line 248:\n self.assertEquals(values[2], 7)';204 $m.__track_lines__[249] = 'ArgsTest.py, line 249:\n self.assertEquals(values[3][0], 2)';205 $m.__track_lines__[250] = 'ArgsTest.py, line 250:\n self.assertEquals(values[3][1], 3)';206 $m.__track_lines__[251] = 'ArgsTest.py, line 251:\n self.assertEquals(values[3][2], 4)';207 $m.__track_lines__[253] = 'ArgsTest.py, line 253:\n values = ArgsTestClass_foo4(9, 8, 7, 3, 2, 1).x';208 $m.__track_lines__[254] = 'ArgsTest.py, line 254:\n self.assertEquals(values[0], 9)';209 $m.__track_lines__[255] = 'ArgsTest.py, line 255:\n self.assertEquals(values[1], 8)';210 $m.__track_lines__[256] = 'ArgsTest.py, line 256:\n self.assertEquals(values[2], 7)';211 $m.__track_lines__[257] = 'ArgsTest.py, line 257:\n self.assertEquals(values[3][0], 3)';212 $m.__track_lines__[258] = 'ArgsTest.py, line 258:\n self.assertEquals(values[3][1], 2)';213 $m.__track_lines__[259] = 'ArgsTest.py, line 259:\n self.assertEquals(values[3][2], 1)';214 $m.__track_lines__[261] = 'ArgsTest.py, line 261:\n def testKwargsCtorCall(self):';215 $m.__track_lines__[262] = 'ArgsTest.py, line 262:\n values = ArgsTestClass_foo5(9, 8, 7, x=5, y=7).x';216 $m.__track_lines__[263] = 'ArgsTest.py, line 263:\n self.assertEquals(values[0], 9)';217 $m.__track_lines__[264] = 'ArgsTest.py, line 264:\n self.assertEquals(values[1], 8)';218 $m.__track_lines__[265] = 'ArgsTest.py, line 265:\n self.assertEquals(values[2], 7)';219 $m.__track_lines__[266] = 'ArgsTest.py, line 266:\n self.assertEquals(values[3]["x"], 5)';220 $m.__track_lines__[267] = 'ArgsTest.py, line 267:\n self.assertEquals(values[3]["y"], 7)';221 $m.__track_lines__[269] = 'ArgsTest.py, line 269:\n def testComboCtorCall(self):';222 $m.__track_lines__[270] = 'ArgsTest.py, line 270:\n values = ArgsTestClass_foo6(9, 8, 7, 1, 2, 3, x=4, y=5).x';223 $m.__track_lines__[271] = 'ArgsTest.py, line 271:\n self.assertEquals(values[0], 9)';224 $m.__track_lines__[272] = 'ArgsTest.py, line 272:\n self.assertEquals(values[1], 8)';225 $m.__track_lines__[273] = 'ArgsTest.py, line 273:\n self.assertEquals(values[2], 7)';226 $m.__track_lines__[274] = 'ArgsTest.py, line 274:\n self.assertEquals(values[3][0], 1)';227 $m.__track_lines__[275] = 'ArgsTest.py, line 275:\n self.assertEquals(values[3][1], 2)';228 $m.__track_lines__[276] = 'ArgsTest.py, line 276:\n self.assertEquals(values[3][2], 3)';229 $m.__track_lines__[277] = 'ArgsTest.py, line 277:\n self.assertEquals(values[4]["x"], 4)';230 $m.__track_lines__[278] = 'ArgsTest.py, line 278:\n self.assertEquals(values[4]["y"], 5)';231 $m.__track_lines__[280] = 'ArgsTest.py, line 280:\n def testSimpleMethodCall(self):';232 $m.__track_lines__[281] = 'ArgsTest.py, line 281:\n values = ArgsTestClass().foo(1, 2, 3)';233 $m.__track_lines__[282] = 'ArgsTest.py, line 282:\n self.assertEquals(values[0], 1)';234 $m.__track_lines__[283] = 'ArgsTest.py, line 283:\n self.assertEquals(values[1], 2)';235 $m.__track_lines__[284] = 'ArgsTest.py, line 284:\n self.assertEquals(values[2], 3)';236 $m.__track_lines__[286] = 'ArgsTest.py, line 286:\n values = ArgsTestClass().foo2(1, 2, 3)';237 $m.__track_lines__[287] = 'ArgsTest.py, line 287:\n self.assertEquals(values[0], 1)';238 $m.__track_lines__[288] = 'ArgsTest.py, line 288:\n self.assertEquals(values[1], 2)';239 $m.__track_lines__[289] = 'ArgsTest.py, line 289:\n self.assertEquals(values[2], 3)';240 $m.__track_lines__[291] = 'ArgsTest.py, line 291:\n def testKeywordMethodCall(self):';241 $m.__track_lines__[292] = 'ArgsTest.py, line 292:\n values = ArgsTestClass().foo2(c=3, b=2, a=1)';242 $m.__track_lines__[293] = 'ArgsTest.py, line 293:\n self.assertEquals(values[0], 1)';243 $m.__track_lines__[294] = 'ArgsTest.py, line 294:\n self.assertEquals(values[1], 2)';244 $m.__track_lines__[295] = 'ArgsTest.py, line 295:\n self.assertEquals(values[2], 3)';245 $m.__track_lines__[297] = 'ArgsTest.py, line 297:\n values = ArgsTestClass().foo2(b=2, a=1, c=3)';246 $m.__track_lines__[298] = 'ArgsTest.py, line 298:\n self.assertEquals(values[0], 1)';247 $m.__track_lines__[299] = 'ArgsTest.py, line 299:\n self.assertEquals(values[1], 2)';248 $m.__track_lines__[300] = 'ArgsTest.py, line 300:\n self.assertEquals(values[2], 3)';249 $m.__track_lines__[302] = 'ArgsTest.py, line 302:\n values = ArgsTestClass().foo2()';250 $m.__track_lines__[303] = 'ArgsTest.py, line 303:\n self.assertEquals(values[0], None)';251 $m.__track_lines__[304] = 'ArgsTest.py, line 304:\n self.assertEquals(values[1], None)';252 $m.__track_lines__[305] = 'ArgsTest.py, line 305:\n self.assertEquals(values[2], None)';253 $m.__track_lines__[307] = 'ArgsTest.py, line 307:\n values = ArgsTestClass().foo2(c=True)';254 $m.__track_lines__[308] = 'ArgsTest.py, line 308:\n self.assertEquals(values[0], None)';255 $m.__track_lines__[309] = 'ArgsTest.py, line 309:\n self.assertEquals(values[1], None)';256 $m.__track_lines__[310] = 'ArgsTest.py, line 310:\n self.assertEquals(values[2], True)';257 $m.__track_lines__[313] = 'ArgsTest.py, line 313:\n def testDefaultValuesMethodCall(self):';258 $m.__track_lines__[314] = 'ArgsTest.py, line 314:\n values = ArgsTestClass().foo3(b=7)';259 $m.__track_lines__[315] = 'ArgsTest.py, line 315:\n self.assertEquals(values[0], 1)';260 $m.__track_lines__[316] = 'ArgsTest.py, line 316:\n self.assertEquals(values[1], 7)';261 $m.__track_lines__[317] = 'ArgsTest.py, line 317:\n self.assertEquals(values[2], 3)';262 $m.__track_lines__[319] = 'ArgsTest.py, line 319:\n values = ArgsTestClass().foo3(a=9)';263 $m.__track_lines__[320] = 'ArgsTest.py, line 320:\n self.assertEquals(values[0], 9)';264 $m.__track_lines__[321] = 'ArgsTest.py, line 321:\n self.assertEquals(values[1], 2)';265 $m.__track_lines__[322] = 'ArgsTest.py, line 322:\n self.assertEquals(values[2], 3)';266 $m.__track_lines__[324] = 'ArgsTest.py, line 324:\n values = ArgsTestClass().foo3()';267 $m.__track_lines__[325] = 'ArgsTest.py, line 325:\n self.assertEquals(values[0], 1)';268 $m.__track_lines__[326] = 'ArgsTest.py, line 326:\n self.assertEquals(values[1], 2)';269 $m.__track_lines__[327] = 'ArgsTest.py, line 327:\n self.assertEquals(values[2], 3)';270 $m.__track_lines__[329] = 'ArgsTest.py, line 329:\n def testVarargsMethodCall(self):';271 $m.__track_lines__[330] = 'ArgsTest.py, line 330:\n values = ArgsTestClass().foo4(1, 2, 3)';272 $m.__track_lines__[331] = 'ArgsTest.py, line 331:\n self.assertEquals(values[0], 1)';273 $m.__track_lines__[332] = 'ArgsTest.py, line 332:\n self.assertEquals(values[1], 2)';274 $m.__track_lines__[333] = 'ArgsTest.py, line 333:\n self.assertEquals(values[2], 3)';275 $m.__track_lines__[335] = 'ArgsTest.py, line 335:\n values = ArgsTestClass().foo4(3, 2, 1)';276 $m.__track_lines__[336] = 'ArgsTest.py, line 336:\n self.assertEquals(values[0], 3)';277 $m.__track_lines__[337] = 'ArgsTest.py, line 337:\n self.assertEquals(values[1], 2)';278 $m.__track_lines__[338] = 'ArgsTest.py, line 338:\n self.assertEquals(values[2], 1)';279 $m.__track_lines__[340] = 'ArgsTest.py, line 340:\n def testKwargsMethodCall(self):';280 $m.__track_lines__[341] = 'ArgsTest.py, line 341:\n values = ArgsTestClass().foo5(x=5, y=7)';281 $m.__track_lines__[342] = 'ArgsTest.py, line 342:\n self.assertEquals(values["x"], 5)';282 $m.__track_lines__[343] = 'ArgsTest.py, line 343:\n self.assertEquals(values["y"], 7)';283 $m.__track_lines__[345] = 'ArgsTest.py, line 345:\n def testComboMethodCall(self):';284 $m.__track_lines__[346] = 'ArgsTest.py, line 346:\n values = ArgsTestClass().foo6(1, 2, 3, x=4, y=5)';285 $m.__track_lines__[347] = 'ArgsTest.py, line 347:\n self.assertEquals(values[0][0], 1)';286 $m.__track_lines__[348] = 'ArgsTest.py, line 348:\n self.assertEquals(values[0][1], 2)';287 $m.__track_lines__[349] = 'ArgsTest.py, line 349:\n self.assertEquals(values[0][2], 3)';288 $m.__track_lines__[350] = 'ArgsTest.py, line 350:\n self.assertEquals(values[1]["x"], 4)';289 $m.__track_lines__[351] = 'ArgsTest.py, line 351:\n self.assertEquals(values[1]["y"], 5)';290 $m.__track_lines__[353] = 'ArgsTest.py, line 353:\n def testEdgeMethodCall(self):';291 $m.__track_lines__[354] = 'ArgsTest.py, line 354:\n values = ArgsTestClass().foo7(1,2,3,b=2)';292 $m.__track_lines__[355] = 'ArgsTest.py, line 355:\n self.assertEqual(values[0], 1)';293 $m.__track_lines__[356] = 'ArgsTest.py, line 356:\n self.assertEqual(values[1], (2,3))';294 $m.__track_lines__[357] = "ArgsTest.py, line 357:\n self.assertEqual(values[2], {'b':2})";295 $m.__track_lines__[359] = "ArgsTest.py, line 359:\n values = ArgsTestClass().foo7(1, 2, 3, {'b':2})";296 $m.__track_lines__[360] = 'ArgsTest.py, line 360:\n self.assertEqual(values[0], 1)';297 $m.__track_lines__[361] = "ArgsTest.py, line 361:\n self.assertEqual(values[1], (2,3,{'b':2}))";298 $m.__track_lines__[362] = 'ArgsTest.py, line 362:\n self.assertEqual(values[2], {})';299 $m.__track_lines__[364] = 'ArgsTest.py, line 364:\n vaules = ArgsTestClass().foo8(1, b=2)';300 $m.__track_lines__[365] = 'ArgsTest.py, line 365:\n self.assertEqual(vaules[0], 1)';301 $m.__track_lines__[366] = "ArgsTest.py, line 366:\n self.assertEqual(vaules[1], {'b':2})";302 $m.__track_lines__[368] = "ArgsTest.py, line 368:\n vaules = ArgsTestClass().foo8({'b':2})";303 $m.__track_lines__[369] = "ArgsTest.py, line 369:\n self.assertEqual(vaules[0], {'b':2})";304 $m.__track_lines__[370] = 'ArgsTest.py, line 370:\n self.assertEqual(vaules[1], {})';305 $m.__track_lines__[372] = 'ArgsTest.py, line 372:\n def testSimpleStaticMethodCall(self):';306 $m.__track_lines__[373] = 'ArgsTest.py, line 373:\n values = ArgsTestClass2.foo(1, 2, 3)';307 $m.__track_lines__[374] = 'ArgsTest.py, line 374:\n self.assertEquals(values[0], 1)';308 $m.__track_lines__[375] = 'ArgsTest.py, line 375:\n self.assertEquals(values[1], 2)';309 $m.__track_lines__[376] = 'ArgsTest.py, line 376:\n self.assertEquals(values[2], 3)';310 $m.__track_lines__[378] = 'ArgsTest.py, line 378:\n values = ArgsTestClass2.foo2(1, 2, 3)';311 $m.__track_lines__[379] = 'ArgsTest.py, line 379:\n self.assertEquals(values[0], 1)';312 $m.__track_lines__[380] = 'ArgsTest.py, line 380:\n self.assertEquals(values[1], 2)';313 $m.__track_lines__[381] = 'ArgsTest.py, line 381:\n self.assertEquals(values[2], 3)';314 $m.__track_lines__[383] = 'ArgsTest.py, line 383:\n def testKeywordStaticMethodCall(self):';315 $m.__track_lines__[384] = 'ArgsTest.py, line 384:\n values = ArgsTestClass2.foo2(c=3, b=2, a=1)';316 $m.__track_lines__[385] = 'ArgsTest.py, line 385:\n self.assertEquals(values[0], 1)';317 $m.__track_lines__[386] = 'ArgsTest.py, line 386:\n self.assertEquals(values[1], 2)';318 $m.__track_lines__[387] = 'ArgsTest.py, line 387:\n self.assertEquals(values[2], 3)';319 $m.__track_lines__[389] = 'ArgsTest.py, line 389:\n values = ArgsTestClass2.foo2(b=2, a=1, c=3)';320 $m.__track_lines__[390] = 'ArgsTest.py, line 390:\n self.assertEquals(values[0], 1)';321 $m.__track_lines__[391] = 'ArgsTest.py, line 391:\n self.assertEquals(values[1], 2)';322 $m.__track_lines__[392] = 'ArgsTest.py, line 392:\n self.assertEquals(values[2], 3)';323 $m.__track_lines__[394] = 'ArgsTest.py, line 394:\n values = ArgsTestClass2.foo2()';324 $m.__track_lines__[395] = 'ArgsTest.py, line 395:\n self.assertEquals(values[0], None)';325 $m.__track_lines__[396] = 'ArgsTest.py, line 396:\n self.assertEquals(values[1], None)';326 $m.__track_lines__[397] = 'ArgsTest.py, line 397:\n self.assertEquals(values[2], None)';327 $m.__track_lines__[399] = 'ArgsTest.py, line 399:\n values = ArgsTestClass2.foo2(c=True)';328 $m.__track_lines__[400] = 'ArgsTest.py, line 400:\n self.assertEquals(values[0], None)';329 $m.__track_lines__[401] = 'ArgsTest.py, line 401:\n self.assertEquals(values[1], None)';330 $m.__track_lines__[402] = 'ArgsTest.py, line 402:\n self.assertEquals(values[2], True)';331 $m.__track_lines__[404] = 'ArgsTest.py, line 404:\n def testDefaultValuesStaticMethodCall(self):';332 $m.__track_lines__[405] = 'ArgsTest.py, line 405:\n values = ArgsTestClass2.foo3(b=7)';333 $m.__track_lines__[406] = 'ArgsTest.py, line 406:\n self.assertEquals(values[0], 1)';334 $m.__track_lines__[407] = 'ArgsTest.py, line 407:\n self.assertEquals(values[1], 7)';335 $m.__track_lines__[408] = 'ArgsTest.py, line 408:\n self.assertEquals(values[2], 3)';336 $m.__track_lines__[410] = 'ArgsTest.py, line 410:\n values = ArgsTestClass2.foo3(a=9)';337 $m.__track_lines__[411] = 'ArgsTest.py, line 411:\n self.assertEquals(values[0], 9)';338 $m.__track_lines__[412] = 'ArgsTest.py, line 412:\n self.assertEquals(values[1], 2)';339 $m.__track_lines__[413] = 'ArgsTest.py, line 413:\n self.assertEquals(values[2], 3)';340 $m.__track_lines__[415] = 'ArgsTest.py, line 415:\n values = ArgsTestClass2.foo3()';341 $m.__track_lines__[416] = 'ArgsTest.py, line 416:\n self.assertEquals(values[0], 1)';342 $m.__track_lines__[417] = 'ArgsTest.py, line 417:\n self.assertEquals(values[1], 2)';343 $m.__track_lines__[418] = 'ArgsTest.py, line 418:\n self.assertEquals(values[2], 3)';344 $m.__track_lines__[420] = 'ArgsTest.py, line 420:\n def testVarargsStaticMethodCall(self):';345 $m.__track_lines__[421] = 'ArgsTest.py, line 421:\n values = ArgsTestClass2.foo4(1, 2, 3)';346 $m.__track_lines__[422] = 'ArgsTest.py, line 422:\n self.assertEquals(values[0], 1)';347 $m.__track_lines__[423] = 'ArgsTest.py, line 423:\n self.assertEquals(values[1], 2)';348 $m.__track_lines__[424] = 'ArgsTest.py, line 424:\n self.assertEquals(values[2], 3)';349 $m.__track_lines__[426] = 'ArgsTest.py, line 426:\n values = ArgsTestClass2.foo4(3, 2, 1)';350 $m.__track_lines__[427] = 'ArgsTest.py, line 427:\n self.assertEquals(values[0], 3)';351 $m.__track_lines__[428] = 'ArgsTest.py, line 428:\n self.assertEquals(values[1], 2)';352 $m.__track_lines__[429] = 'ArgsTest.py, line 429:\n self.assertEquals(values[2], 1)';353 $m.__track_lines__[431] = 'ArgsTest.py, line 431:\n def testKwargsStaticMethodCall(self):';354 $m.__track_lines__[432] = 'ArgsTest.py, line 432:\n values = ArgsTestClass2.foo5(x=5, y=7)';355 $m.__track_lines__[433] = 'ArgsTest.py, line 433:\n self.assertEquals(values["x"], 5)';356 $m.__track_lines__[434] = 'ArgsTest.py, line 434:\n self.assertEquals(values["y"], 7)';357 $m.__track_lines__[436] = 'ArgsTest.py, line 436:\n def testComboStaticMethodCall(self):';358 $m.__track_lines__[437] = 'ArgsTest.py, line 437:\n values = ArgsTestClass2.foo6(1, 2, 3, x=4, y=5)';359 $m.__track_lines__[438] = 'ArgsTest.py, line 438:\n self.assertEquals(values[0][0], 1)';360 $m.__track_lines__[439] = 'ArgsTest.py, line 439:\n self.assertEquals(values[0][1], 2)';361 $m.__track_lines__[440] = 'ArgsTest.py, line 440:\n self.assertEquals(values[0][2], 3)';362 $m.__track_lines__[441] = 'ArgsTest.py, line 441:\n self.assertEquals(values[1]["x"], 4)';363 $m.__track_lines__[442] = 'ArgsTest.py, line 442:\n self.assertEquals(values[1]["y"], 5)';364 $m.__track_lines__[444] = 'ArgsTest.py, line 444:\n def testEdgeStaticMethodCall(self):';365 $m.__track_lines__[445] = 'ArgsTest.py, line 445:\n values = ArgsTestClass2.foo7(1,2,3,b=2)';366 $m.__track_lines__[446] = 'ArgsTest.py, line 446:\n self.assertEqual(values[0], 1)';367 $m.__track_lines__[447] = 'ArgsTest.py, line 447:\n self.assertEqual(values[1], (2,3))';368 $m.__track_lines__[448] = "ArgsTest.py, line 448:\n self.assertEqual(values[2], {'b':2})";369 $m.__track_lines__[450] = "ArgsTest.py, line 450:\n values = ArgsTestClass2.foo7(1, 2, 3, {'b':2})";370 $m.__track_lines__[451] = 'ArgsTest.py, line 451:\n self.assertEqual(values[0], 1)';371 $m.__track_lines__[452] = "ArgsTest.py, line 452:\n self.assertEqual(values[1], (2,3,{'b':2}))";372 $m.__track_lines__[453] = 'ArgsTest.py, line 453:\n self.assertEqual(values[2], {})';373 $m.__track_lines__[455] = 'ArgsTest.py, line 455:\n vaules = ArgsTestClass2.foo8(1, b=2)';374 $m.__track_lines__[456] = 'ArgsTest.py, line 456:\n self.assertEqual(vaules[0], 1)';375 $m.__track_lines__[457] = "ArgsTest.py, line 457:\n self.assertEqual(vaules[1], {'b':2})";376 $m.__track_lines__[459] = "ArgsTest.py, line 459:\n vaules = ArgsTestClass2.foo8({'b':2})";377 $m.__track_lines__[460] = "ArgsTest.py, line 460:\n self.assertEqual(vaules[0], {'b':2})";378 $m.__track_lines__[461] = 'ArgsTest.py, line 461:\n self.assertEqual(vaules[1], {})';379 $m.__track_lines__[463] = 'ArgsTest.py, line 463:\n def testSimpleClassMethodCall(self):';380 $m.__track_lines__[464] = 'ArgsTest.py, line 464:\n values = ArgsTestClass3.foo(1, 2, 3)';381 $m.__track_lines__[465] = 'ArgsTest.py, line 465:\n self.assertEquals(values[0], 1)';382 $m.__track_lines__[466] = 'ArgsTest.py, line 466:\n self.assertEquals(values[1], 2)';383 $m.__track_lines__[467] = 'ArgsTest.py, line 467:\n self.assertEquals(values[2], 3)';384 $m.__track_lines__[469] = 'ArgsTest.py, line 469:\n values = ArgsTestClass3.foo2(1, 2, 3)';385 $m.__track_lines__[470] = 'ArgsTest.py, line 470:\n self.assertEquals(values[0], 1)';386 $m.__track_lines__[471] = 'ArgsTest.py, line 471:\n self.assertEquals(values[1], 2)';387 $m.__track_lines__[472] = 'ArgsTest.py, line 472:\n self.assertEquals(values[2], 3)';388 $m.__track_lines__[474] = 'ArgsTest.py, line 474:\n def testKeywordClassMethodCall(self):';389 $m.__track_lines__[475] = 'ArgsTest.py, line 475:\n values = ArgsTestClass3.foo2(c=3, b=2, a=1)';390 $m.__track_lines__[476] = 'ArgsTest.py, line 476:\n self.assertEquals(values[0], 1)';391 $m.__track_lines__[477] = 'ArgsTest.py, line 477:\n self.assertEquals(values[1], 2)';392 $m.__track_lines__[478] = 'ArgsTest.py, line 478:\n self.assertEquals(values[2], 3)';393 $m.__track_lines__[480] = 'ArgsTest.py, line 480:\n values = ArgsTestClass3.foo2(b=2, a=1, c=3)';394 $m.__track_lines__[481] = 'ArgsTest.py, line 481:\n self.assertEquals(values[0], 1)';395 $m.__track_lines__[482] = 'ArgsTest.py, line 482:\n self.assertEquals(values[1], 2)';396 $m.__track_lines__[483] = 'ArgsTest.py, line 483:\n self.assertEquals(values[2], 3)';397 $m.__track_lines__[485] = 'ArgsTest.py, line 485:\n values = ArgsTestClass3.foo2()';398 $m.__track_lines__[486] = 'ArgsTest.py, line 486:\n self.assertEquals(values[0], None)';399 $m.__track_lines__[487] = 'ArgsTest.py, line 487:\n self.assertEquals(values[1], None)';400 $m.__track_lines__[488] = 'ArgsTest.py, line 488:\n self.assertEquals(values[2], None)';401 $m.__track_lines__[490] = 'ArgsTest.py, line 490:\n values = ArgsTestClass3.foo2(c=True)';402 $m.__track_lines__[491] = 'ArgsTest.py, line 491:\n self.assertEquals(values[0], None)';403 $m.__track_lines__[492] = 'ArgsTest.py, line 492:\n self.assertEquals(values[1], None)';404 $m.__track_lines__[493] = 'ArgsTest.py, line 493:\n self.assertEquals(values[2], True)';405 $m.__track_lines__[496] = 'ArgsTest.py, line 496:\n def testDefaultValuesClassMethodCall(self):';406 $m.__track_lines__[497] = 'ArgsTest.py, line 497:\n values = ArgsTestClass3.foo3(b=7)';407 $m.__track_lines__[498] = 'ArgsTest.py, line 498:\n self.assertEquals(values[0], 1)';408 $m.__track_lines__[499] = 'ArgsTest.py, line 499:\n self.assertEquals(values[1], 7)';409 $m.__track_lines__[500] = 'ArgsTest.py, line 500:\n self.assertEquals(values[2], 3)';410 $m.__track_lines__[502] = 'ArgsTest.py, line 502:\n values = ArgsTestClass3.foo3(a=9)';411 $m.__track_lines__[503] = 'ArgsTest.py, line 503:\n self.assertEquals(values[0], 9)';412 $m.__track_lines__[504] = 'ArgsTest.py, line 504:\n self.assertEquals(values[1], 2)';413 $m.__track_lines__[505] = 'ArgsTest.py, line 505:\n self.assertEquals(values[2], 3)';414 $m.__track_lines__[507] = 'ArgsTest.py, line 507:\n values = ArgsTestClass3.foo3()';415 $m.__track_lines__[508] = 'ArgsTest.py, line 508:\n self.assertEquals(values[0], 1)';416 $m.__track_lines__[509] = 'ArgsTest.py, line 509:\n self.assertEquals(values[1], 2)';417 $m.__track_lines__[510] = 'ArgsTest.py, line 510:\n self.assertEquals(values[2], 3)';418 $m.__track_lines__[512] = 'ArgsTest.py, line 512:\n def testVarargsClassMethodCall(self):';419 $m.__track_lines__[513] = 'ArgsTest.py, line 513:\n values = ArgsTestClass3.foo4(1, 2, 3)';420 $m.__track_lines__[514] = 'ArgsTest.py, line 514:\n self.assertEquals(values[0], 1)';421 $m.__track_lines__[515] = 'ArgsTest.py, line 515:\n self.assertEquals(values[1], 2)';422 $m.__track_lines__[516] = 'ArgsTest.py, line 516:\n self.assertEquals(values[2], 3)';423 $m.__track_lines__[518] = 'ArgsTest.py, line 518:\n values = ArgsTestClass3.foo4(3, 2, 1)';424 $m.__track_lines__[519] = 'ArgsTest.py, line 519:\n self.assertEquals(values[0], 3)';425 $m.__track_lines__[520] = 'ArgsTest.py, line 520:\n self.assertEquals(values[1], 2)';426 $m.__track_lines__[521] = 'ArgsTest.py, line 521:\n self.assertEquals(values[2], 1)';427 $m.__track_lines__[523] = 'ArgsTest.py, line 523:\n def testKwargsClassMethodCall(self):';428 $m.__track_lines__[524] = 'ArgsTest.py, line 524:\n values = ArgsTestClass3.foo5(x=5, y=7)';429 $m.__track_lines__[525] = 'ArgsTest.py, line 525:\n self.assertEquals(values["x"], 5)';430 $m.__track_lines__[526] = 'ArgsTest.py, line 526:\n self.assertEquals(values["y"], 7)';431 $m.__track_lines__[528] = 'ArgsTest.py, line 528:\n def testComboClassMethodCall(self):';432 $m.__track_lines__[529] = 'ArgsTest.py, line 529:\n values = ArgsTestClass3.foo6(1, 2, 3, x=4, y=5)';433 $m.__track_lines__[530] = 'ArgsTest.py, line 530:\n self.assertEquals(values[0][0], 1)';434 $m.__track_lines__[531] = 'ArgsTest.py, line 531:\n self.assertEquals(values[0][1], 2)';435 $m.__track_lines__[532] = 'ArgsTest.py, line 532:\n self.assertEquals(values[0][2], 3)';436 $m.__track_lines__[533] = 'ArgsTest.py, line 533:\n self.assertEquals(values[1]["x"], 4)';437 $m.__track_lines__[534] = 'ArgsTest.py, line 534:\n self.assertEquals(values[1]["y"], 5)';438 $m.__track_lines__[536] = 'ArgsTest.py, line 536:\n def testEdgeClassMethodCall(self):';439 $m.__track_lines__[537] = 'ArgsTest.py, line 537:\n values = ArgsTestClass3.foo7(1,2,3,b=2)';440 $m.__track_lines__[538] = 'ArgsTest.py, line 538:\n self.assertEqual(values[0], 1)';441 $m.__track_lines__[539] = 'ArgsTest.py, line 539:\n self.assertEqual(values[1], (2,3))';442 $m.__track_lines__[540] = "ArgsTest.py, line 540:\n self.assertEqual(values[2], {'b':2})";443 $m.__track_lines__[542] = "ArgsTest.py, line 542:\n values = ArgsTestClass3.foo7(1, 2, 3, {'b':2})";444 $m.__track_lines__[543] = 'ArgsTest.py, line 543:\n self.assertEqual(values[0], 1)';445 $m.__track_lines__[544] = "ArgsTest.py, line 544:\n self.assertEqual(values[1], (2,3,{'b':2}))";446 $m.__track_lines__[545] = 'ArgsTest.py, line 545:\n self.assertEqual(values[2], {})';447 $m.__track_lines__[547] = 'ArgsTest.py, line 547:\n vaules = ArgsTestClass3.foo8(1, b=2)';448 $m.__track_lines__[548] = 'ArgsTest.py, line 548:\n self.assertEqual(vaules[0], 1)';449 $m.__track_lines__[549] = "ArgsTest.py, line 549:\n self.assertEqual(vaules[1], {'b':2})";450 $m.__track_lines__[551] = "ArgsTest.py, line 551:\n vaules = ArgsTestClass3.foo8({'b':2})";451 $m.__track_lines__[552] = "ArgsTest.py, line 552:\n self.assertEqual(vaules[0], {'b':2})";452 $m.__track_lines__[553] = 'ArgsTest.py, line 553:\n self.assertEqual(vaules[1], {})';453 $m.__track_lines__[555] = 'ArgsTest.py, line 555:\n def testSimpleIndirectClassMethodCall(self):';454 $m.__track_lines__[556] = 'ArgsTest.py, line 556:\n values = ArgsTestClass3().foo(1, 2, 3)';455 $m.__track_lines__[557] = 'ArgsTest.py, line 557:\n self.assertEquals(values[0], 1)';456 $m.__track_lines__[558] = 'ArgsTest.py, line 558:\n self.assertEquals(values[1], 2)';457 $m.__track_lines__[559] = 'ArgsTest.py, line 559:\n self.assertEquals(values[2], 3)';458 $m.__track_lines__[561] = 'ArgsTest.py, line 561:\n values = ArgsTestClass3().foo2(1, 2, 3)';459 $m.__track_lines__[562] = 'ArgsTest.py, line 562:\n self.assertEquals(values[0], 1)';460 $m.__track_lines__[563] = 'ArgsTest.py, line 563:\n self.assertEquals(values[1], 2)';461 $m.__track_lines__[564] = 'ArgsTest.py, line 564:\n self.assertEquals(values[2], 3)';462 $m.__track_lines__[566] = 'ArgsTest.py, line 566:\n def testKeywordIndirectClassMethodCall(self):';463 $m.__track_lines__[567] = 'ArgsTest.py, line 567:\n values = ArgsTestClass3().foo2(c=3, b=2, a=1)';464 $m.__track_lines__[568] = 'ArgsTest.py, line 568:\n self.assertEquals(values[0], 1)';465 $m.__track_lines__[569] = 'ArgsTest.py, line 569:\n self.assertEquals(values[1], 2)';466 $m.__track_lines__[570] = 'ArgsTest.py, line 570:\n self.assertEquals(values[2], 3)';467 $m.__track_lines__[572] = 'ArgsTest.py, line 572:\n values = ArgsTestClass3().foo2(b=2, a=1, c=3)';468 $m.__track_lines__[573] = 'ArgsTest.py, line 573:\n self.assertEquals(values[0], 1)';469 $m.__track_lines__[574] = 'ArgsTest.py, line 574:\n self.assertEquals(values[1], 2)';470 $m.__track_lines__[575] = 'ArgsTest.py, line 575:\n self.assertEquals(values[2], 3)';471 $m.__track_lines__[577] = 'ArgsTest.py, line 577:\n values = ArgsTestClass3().foo2()';472 $m.__track_lines__[578] = 'ArgsTest.py, line 578:\n self.assertEquals(values[0], None)';473 $m.__track_lines__[579] = 'ArgsTest.py, line 579:\n self.assertEquals(values[1], None)';474 $m.__track_lines__[580] = 'ArgsTest.py, line 580:\n self.assertEquals(values[2], None)';475 $m.__track_lines__[582] = 'ArgsTest.py, line 582:\n values = ArgsTestClass3().foo2(c=True)';476 $m.__track_lines__[583] = 'ArgsTest.py, line 583:\n self.assertEquals(values[0], None)';477 $m.__track_lines__[584] = 'ArgsTest.py, line 584:\n self.assertEquals(values[1], None)';478 $m.__track_lines__[585] = 'ArgsTest.py, line 585:\n self.assertEquals(values[2], True)';479 $m.__track_lines__[588] = 'ArgsTest.py, line 588:\n def testDefaultValuesIndirectClassMethodCall(self):';480 $m.__track_lines__[589] = 'ArgsTest.py, line 589:\n values = ArgsTestClass3().foo3(b=7)';481 $m.__track_lines__[590] = 'ArgsTest.py, line 590:\n self.assertEquals(values[0], 1)';482 $m.__track_lines__[591] = 'ArgsTest.py, line 591:\n self.assertEquals(values[1], 7)';483 $m.__track_lines__[592] = 'ArgsTest.py, line 592:\n self.assertEquals(values[2], 3)';484 $m.__track_lines__[594] = 'ArgsTest.py, line 594:\n values = ArgsTestClass3().foo3(a=9)';485 $m.__track_lines__[595] = 'ArgsTest.py, line 595:\n self.assertEquals(values[0], 9)';486 $m.__track_lines__[596] = 'ArgsTest.py, line 596:\n self.assertEquals(values[1], 2)';487 $m.__track_lines__[597] = 'ArgsTest.py, line 597:\n self.assertEquals(values[2], 3)';488 $m.__track_lines__[599] = 'ArgsTest.py, line 599:\n values = ArgsTestClass3().foo3()';489 $m.__track_lines__[600] = 'ArgsTest.py, line 600:\n self.assertEquals(values[0], 1)';490 $m.__track_lines__[601] = 'ArgsTest.py, line 601:\n self.assertEquals(values[1], 2)';491 $m.__track_lines__[602] = 'ArgsTest.py, line 602:\n self.assertEquals(values[2], 3)';492 $m.__track_lines__[604] = 'ArgsTest.py, line 604:\n def testVarargsIndirectClassMethodCall(self):';493 $m.__track_lines__[605] = 'ArgsTest.py, line 605:\n values = ArgsTestClass3().foo4(1, 2, 3)';494 $m.__track_lines__[606] = 'ArgsTest.py, line 606:\n self.assertEquals(values[0], 1)';495 $m.__track_lines__[607] = 'ArgsTest.py, line 607:\n self.assertEquals(values[1], 2)';496 $m.__track_lines__[608] = 'ArgsTest.py, line 608:\n self.assertEquals(values[2], 3)';497 $m.__track_lines__[610] = 'ArgsTest.py, line 610:\n values = ArgsTestClass3().foo4(3, 2, 1)';498 $m.__track_lines__[611] = 'ArgsTest.py, line 611:\n self.assertEquals(values[0], 3)';499 $m.__track_lines__[612] = 'ArgsTest.py, line 612:\n self.assertEquals(values[1], 2)';500 $m.__track_lines__[613] = 'ArgsTest.py, line 613:\n self.assertEquals(values[2], 1)';501 $m.__track_lines__[615] = 'ArgsTest.py, line 615:\n def testKwargsIndirectClassMethodCall(self):';502 $m.__track_lines__[616] = 'ArgsTest.py, line 616:\n values = ArgsTestClass3().foo5(x=5, y=7)';503 $m.__track_lines__[617] = 'ArgsTest.py, line 617:\n self.assertEquals(values["x"], 5)';504 $m.__track_lines__[618] = 'ArgsTest.py, line 618:\n self.assertEquals(values["y"], 7)';505 $m.__track_lines__[620] = 'ArgsTest.py, line 620:\n def testComboIndirectClassMethodCall(self):';506 $m.__track_lines__[621] = 'ArgsTest.py, line 621:\n values = ArgsTestClass3().foo6(1, 2, 3, x=4, y=5)';507 $m.__track_lines__[622] = 'ArgsTest.py, line 622:\n self.assertEquals(values[0][0], 1)';508 $m.__track_lines__[623] = 'ArgsTest.py, line 623:\n self.assertEquals(values[0][1], 2)';509 $m.__track_lines__[624] = 'ArgsTest.py, line 624:\n self.assertEquals(values[0][2], 3)';510 $m.__track_lines__[625] = 'ArgsTest.py, line 625:\n self.assertEquals(values[1]["x"], 4)';511 $m.__track_lines__[626] = 'ArgsTest.py, line 626:\n self.assertEquals(values[1]["y"], 5)';512 $m.__track_lines__[628] = 'ArgsTest.py, line 628:\n def testKwArgsRecurse(self):';513 $m.__track_lines__[629] = 'ArgsTest.py, line 629:\n kwa = kw_args(x=5, y=6)';514 $m.__track_lines__[630] = 'ArgsTest.py, line 630:\n if kwa:';515 $m.__track_lines__[631] = "ArgsTest.py, line 631:\n self.assertEquals(kwa.get('x'), 5)";516 $m.__track_lines__[632] = "ArgsTest.py, line 632:\n self.assertEquals(kwa.get('y'), 6)";517 $m.__track_lines__[634] = 'ArgsTest.py, line 634:\n kwa = kw_args2(x=5, y=6)';518 $m.__track_lines__[635] = 'ArgsTest.py, line 635:\n if kwa:';519 $m.__track_lines__[636] = "ArgsTest.py, line 636:\n self.assertEquals(kwa.get('x'), 5)";520 $m.__track_lines__[637] = "ArgsTest.py, line 637:\n self.assertEquals(kwa.get('y'), 6)";521 $m.__track_lines__[639] = 'ArgsTest.py, line 639:\n values = varargs_kwargs(1,2,3,4,c=3)';522 $m.__track_lines__[640] = 'ArgsTest.py, line 640:\n self.assertEquals(values[0], 1)';523 $m.__track_lines__[641] = 'ArgsTest.py, line 641:\n self.assertEquals(values[1], 2)';524 $m.__track_lines__[642] = 'ArgsTest.py, line 642:\n self.assertEquals(values[2], (3,4))';525 $m.__track_lines__[643] = "ArgsTest.py, line 643:\n self.assertEquals(values[3]['c'], 3)";526 $m.__track_lines__[645] = 'ArgsTest.py, line 645:\n values = varargs_kwargs2(1,2,3,4,c=3)';527 $m.__track_lines__[646] = 'ArgsTest.py, line 646:\n self.assertEquals(values[0], 1)';528 $m.__track_lines__[647] = 'ArgsTest.py, line 647:\n self.assertEquals(values[1], 2)';529 $m.__track_lines__[648] = 'ArgsTest.py, line 648:\n self.assertEquals(values[2], (3,4))';530 $m.__track_lines__[649] = "ArgsTest.py, line 649:\n self.assertEquals(values[3]['c'], 3)";531 $m.__track_lines__[651] = 'ArgsTest.py, line 651:\n values = varargs_kwargs2(1)';532 $m.__track_lines__[652] = 'ArgsTest.py, line 652:\n self.assertEquals(values[0], 1)';533 $m.__track_lines__[653] = 'ArgsTest.py, line 653:\n self.assertEquals(values[1], 3)';534 $m.__track_lines__[655] = "ArgsTest.py, line 655:\n values = varargs_kwargs2(1, {'a':1}, {})";535 $m.__track_lines__[656] = 'ArgsTest.py, line 656:\n self.assertEquals(values[0], 1)';536 $m.__track_lines__[657] = "ArgsTest.py, line 657:\n self.assertEquals(values[1]['a'], 1)";537 $m.__track_lines__[659] = "ArgsTest.py, line 659:\n values = varargs_kwargs2(1, {'a':1})";538 $m.__track_lines__[660] = 'ArgsTest.py, line 660:\n self.assertEquals(values[0], 1)';539 $m.__track_lines__[661] = 'ArgsTest.py, line 661:\n try:';540 $m.__track_lines__[662] = "ArgsTest.py, line 662:\n self.assertEquals(values[1], {'a':1})";541 $m.__track_lines__[664] = 'ArgsTest.py, line 664:\n self.fail("Last arg in *args,**kwargs is dict problem")';542 $m.__track_lines__[666] = 'ArgsTest.py, line 666:\n def testKwArgsInherit(self):';543 $m.__track_lines__[668] = 'ArgsTest.py, line 668:\n c = KwArgs(x=5, y=6)';544 $m.__track_lines__[669] = "ArgsTest.py, line 669:\n self.assertTrue(hasattr(c, 'kwargs'))";545 $m.__track_lines__[670] = "ArgsTest.py, line 670:\n kwa = getattr(c, 'kwargs', None)";546 $m.__track_lines__[671] = 'ArgsTest.py, line 671:\n if kwa:';547 $m.__track_lines__[672] = "ArgsTest.py, line 672:\n self.assertEquals(kwa.get('x'), 5)";548 $m.__track_lines__[673] = "ArgsTest.py, line 673:\n self.assertEquals(kwa.get('y'), 6)";549 $m.__track_lines__[674] = "ArgsTest.py, line 674:\n self.assertEquals(kwa.get('z'), 7)";550 $m.__track_lines__[676] = 'ArgsTest.py, line 676:\n try:';551 $m.__track_lines__[677] = 'ArgsTest.py, line 677:\n c = Kwargs2(x=5, y=6)';552 $m.__track_lines__[678] = "ArgsTest.py, line 678:\n self.assertTrue(hasattr(c, 'kwargs'))";553 $m.__track_lines__[679] = "ArgsTest.py, line 679:\n kwa = getattr(c, 'kwargs', None)";554 $m.__track_lines__[680] = 'ArgsTest.py, line 680:\n if kwa:';555 $m.__track_lines__[681] = "ArgsTest.py, line 681:\n self.assertEquals(kwa.get('x'), 5)";556 $m.__track_lines__[682] = "ArgsTest.py, line 682:\n self.assertEquals(kwa.get('y'), 6)";557 $m.__track_lines__[683] = "ArgsTest.py, line 683:\n self.assertEquals(kwa.get('z'), 7)";558 $m.__track_lines__[685] = 'ArgsTest.py, line 685:\n self.assertTrue(False, "runtime error in kwargs, needs investigating")';559 $m.__track_lines__[687] = 'ArgsTest.py, line 687:\n c.set_kwargs(x=5, y=6)';560 $m.__track_lines__[688] = "ArgsTest.py, line 688:\n self.assertTrue(hasattr(c, 'kwargs'))";561 $m.__track_lines__[689] = "ArgsTest.py, line 689:\n kwa = getattr(c, 'kwargs', None)";562 $m.__track_lines__[690] = 'ArgsTest.py, line 690:\n if kwa:';563 $m.__track_lines__[691] = "ArgsTest.py, line 691:\n self.assertEquals(kwa.get('x'), 5)";564 $m.__track_lines__[692] = "ArgsTest.py, line 692:\n self.assertEquals(kwa.get('y'), 6)";565 $m.__track_lines__[693] = "ArgsTest.py, line 693:\n self.assertEquals(kwa.get('z'), 8)";566 $m.__track_lines__[696] = 'ArgsTest.py, line 696:\n c.set_kwargs2(x=5, y=6)';567 $m.__track_lines__[697] = "ArgsTest.py, line 697:\n self.assertTrue(hasattr(c, 'kwargs'))";568 $m.__track_lines__[698] = "ArgsTest.py, line 698:\n kwa = getattr(c, 'kwargs', None)";569 $m.__track_lines__[699] = 'ArgsTest.py, line 699:\n if kwa:';570 $m.__track_lines__[700] = "ArgsTest.py, line 700:\n self.assertEquals(kwa.get('x'), 5)";571 $m.__track_lines__[701] = "ArgsTest.py, line 701:\n self.assertEquals(kwa.get('y'), 6)";572 $m.__track_lines__[702] = "ArgsTest.py, line 702:\n self.assertEquals(kwa.get('z'), 8)";573 $m.__track_lines__[705] = 'ArgsTest.py, line 705:\n c.set_kwargs3(x=5, y=6)';574 $m.__track_lines__[706] = "ArgsTest.py, line 706:\n self.assertTrue(hasattr(c, 'kwargs'))";575 $m.__track_lines__[707] = "ArgsTest.py, line 707:\n kwa = getattr(c, 'kwargs', None)";576 $m.__track_lines__[708] = 'ArgsTest.py, line 708:\n if kwa:';577 $m.__track_lines__[709] = "ArgsTest.py, line 709:\n self.assertEquals(kwa.get('x'), 5)";578 $m.__track_lines__[710] = "ArgsTest.py, line 710:\n self.assertEquals(kwa.get('y'), 6)";579 $m.__track_lines__[711] = "ArgsTest.py, line 711:\n self.assertEquals(kwa.get('z'), 8)";580 $m.__track_lines__[713] = 'ArgsTest.py, line 713:\n def testKwArgsNameMapping(self):';581 $m.__track_lines__[714] = "ArgsTest.py, line 714:\n kwargs = dict(comment='Comment', name='Name')";582 $m.__track_lines__[715] = 'ArgsTest.py, line 715:\n def fn(comment=None, name=None):';583 $m.__track_lines__[716] = 'ArgsTest.py, line 716:\n return dict(comment=comment, name=name)';584 $m.__track_lines__[717] = 'ArgsTest.py, line 717:\n kwargs_out = fn(**kwargs)';585 $m.__track_lines__[718] = 'ArgsTest.py, line 718:\n self.assertEquals(kwargs, kwargs_out)';586 $m.__track_lines__[719] = "ArgsTest.py, line 719:\n kwargs = {'comment': 'Comment', 'name': 'Name'}";587 $m.__track_lines__[720] = 'ArgsTest.py, line 720:\n kwargs_out = fn(**kwargs)';588 $m.__track_lines__[721] = 'ArgsTest.py, line 721:\n self.assertEquals(kwargs, kwargs_out)';589 $m.__track_lines__[723] = 'ArgsTest.py, line 723:\n def testLookupOrder(self):';590 $m.__track_lines__[724] = 'ArgsTest.py, line 724:\n def fn(fint = int):';591 $m.__track_lines__[725] = 'ArgsTest.py, line 725:\n return fint(1.2);';592 $m.__track_lines__[726] = 'ArgsTest.py, line 726:\n class A:';593 $m.__track_lines__[727] = 'ArgsTest.py, line 727:\n def fn(self, fint = int):';594 $m.__track_lines__[728] = 'ArgsTest.py, line 728:\n return fint(1.2);';595 $m.__track_lines__[729] = 'ArgsTest.py, line 729:\n self.assertEqual(fn(), 1)';596 $m.__track_lines__[730] = 'ArgsTest.py, line 730:\n self.assertEqual(A().fn(), 1)';597 $m.__track_lines__[732] = 'ArgsTest.py, line 732:\n def testArgIsModuleName(self):';598 $m.__track_lines__[733] = 'ArgsTest.py, line 733:\n def fn(ArgsTest):';599 $m.__track_lines__[734] = 'ArgsTest.py, line 734:\n return foo(ArgsTest, 2, 3)';600 $m.__track_lines__[735] = 'ArgsTest.py, line 735:\n self.assertEqual(__name__, \'ArgsTest\', "Argument to fn must be equal to module name")';601 $m.__track_lines__[736] = "ArgsTest.py, line 736:\n self.assertEqual(fn('foo'), ['foo', 2, 3])";602 $m.__track_lines__[738] = 'ArgsTest.py, line 738:\n def testGetattr(self):';603 $m.__track_lines__[739] = 'ArgsTest.py, line 739:\n instance = ArgsTestClass()';604 $m.__track_lines__[740] = 'ArgsTest.py, line 740:\n foo = instance.foo';605 $m.__track_lines__[742] = 'ArgsTest.py, line 742:\n values = foo(1, 2, 3)';606 $m.__track_lines__[743] = 'ArgsTest.py, line 743:\n self.assertEquals(values[0], 1)';607 $m.__track_lines__[744] = 'ArgsTest.py, line 744:\n self.assertEquals(values[1], 2)';608 $m.__track_lines__[745] = 'ArgsTest.py, line 745:\n self.assertEquals(values[2], 3)';609 $m.__track_lines__[747] = 'ArgsTest.py, line 747:\n values = foo(*(1, 2, 3))';610 $m.__track_lines__[748] = 'ArgsTest.py, line 748:\n self.assertEquals(values[0], 1)';611 $m.__track_lines__[749] = 'ArgsTest.py, line 749:\n self.assertEquals(values[1], 2)';612 $m.__track_lines__[750] = 'ArgsTest.py, line 750:\n self.assertEquals(values[2], 3)';613 $m.__track_lines__[752] = 'ArgsTest.py, line 752:\n try:';614 $m.__track_lines__[753] = 'ArgsTest.py, line 753:\n values = foo(*(1, 2), **dict(c=3))';615 $m.__track_lines__[754] = 'ArgsTest.py, line 754:\n self.assertEquals(values[0], 1)';616 $m.__track_lines__[755] = 'ArgsTest.py, line 755:\n self.assertEquals(values[1], 2)';617 $m.__track_lines__[756] = 'ArgsTest.py, line 756:\n self.assertEquals(values[2], 3)';618 $m.__track_lines__[758] = "ArgsTest.py, line 758:\n self.fail('foo() takes exactly 4 arguments (5 given), bug #503')";619 $m.__track_lines__[760] = 'ArgsTest.py, line 760:\n def testArgsUnpack(self):';620 $m.__track_lines__[761] = 'ArgsTest.py, line 761:\n def func(a, (b, c), d):';621 $m.__track_lines__[762] = 'ArgsTest.py, line 762:\n return a + b + c + d';622 $m.__track_lines__[763] = 'ArgsTest.py, line 763:\n try:';623 $m.__track_lines__[764] = "ArgsTest.py, line 764:\n self.assertEqual(func(1, (2, 3), 4), 10, 'Function args unpacking not supported, #527')";624 $m.__track_lines__[766] = "ArgsTest.py, line 766:\n self.fail('Bug #527 Function args unpacking not supported')";625 $m.__track_lines__[769] = 'ArgsTest.py, line 769:\n def foo(a, b, c):';626 $m.__track_lines__[770] = 'ArgsTest.py, line 770:\n return [a, b, c]';627 $m.__track_lines__[772] = 'ArgsTest.py, line 772:\n def foo2(a=None, b=None, c=None):';628 $m.__track_lines__[773] = 'ArgsTest.py, line 773:\n return [a, b, c]';629 $m.__track_lines__[775] = 'ArgsTest.py, line 775:\n def foo3(a=1, b=2, c=3):';630 $m.__track_lines__[776] = 'ArgsTest.py, line 776:\n return [a, b, c]';631 $m.__track_lines__[778] = 'ArgsTest.py, line 778:\n def foo4(a, b, c, *args):';632 $m.__track_lines__[779] = 'ArgsTest.py, line 779:\n return a, b, c, args';633 $m.__track_lines__[781] = 'ArgsTest.py, line 781:\n def foo5(a, b, c, **kwargs):';634 $m.__track_lines__[782] = 'ArgsTest.py, line 782:\n return a, b, c, kwargs';635 $m.__track_lines__[784] = 'ArgsTest.py, line 784:\n def foo6(a, b, c, *args, **kwargs):';636 $m.__track_lines__[785] = 'ArgsTest.py, line 785:\n return (a, b, c, args, kwargs)';637 $m.__track_lines__[787] = 'ArgsTest.py, line 787:\n def foo7(a, *args, **kwargs):';638 $m.__track_lines__[788] = 'ArgsTest.py, line 788:\n return (a, args, kwargs)';639 $m.__track_lines__[790] = 'ArgsTest.py, line 790:\n def foo8(a, **kwargs):';640 $m.__track_lines__[791] = 'ArgsTest.py, line 791:\n return (a, kwargs)';641 $m.__track_lines__[793] = 'ArgsTest.py, line 793:\n class ArgsTestClass_foo:';642 $m.__track_lines__[794] = 'ArgsTest.py, line 794:\n def __init__(self, a, b, c):';643 $m.__track_lines__[795] = 'ArgsTest.py, line 795:\n self.x = [a, b, c]';644 $m.__track_lines__[797] = 'ArgsTest.py, line 797:\n class ArgsTestClass_foo2:';645 $m.__track_lines__[798] = 'ArgsTest.py, line 798:\n def __init__(self, a=None, b=None, c=None):';646 $m.__track_lines__[799] = 'ArgsTest.py, line 799:\n self.x = [a, b, c]';647 $m.__track_lines__[801] = 'ArgsTest.py, line 801:\n class ArgsTestClass_foo3:';648 $m.__track_lines__[802] = 'ArgsTest.py, line 802:\n def __init__(self, a=1, b=2, c=3):';649 $m.__track_lines__[803] = 'ArgsTest.py, line 803:\n self.x = [a, b, c]';650 $m.__track_lines__[805] = 'ArgsTest.py, line 805:\n class ArgsTestClass_foo4:';651 $m.__track_lines__[806] = 'ArgsTest.py, line 806:\n def __init__(self, a, b, c, *args):';652 $m.__track_lines__[807] = 'ArgsTest.py, line 807:\n self.x = a, b, c, args';653 $m.__track_lines__[809] = 'ArgsTest.py, line 809:\n class ArgsTestClass_foo5:';654 $m.__track_lines__[810] = 'ArgsTest.py, line 810:\n def __init__(self, a, b, c, **kwargs):';655 $m.__track_lines__[811] = 'ArgsTest.py, line 811:\n self.x = a, b, c, kwargs';656 $m.__track_lines__[813] = 'ArgsTest.py, line 813:\n class ArgsTestClass_foo6:';657 $m.__track_lines__[814] = 'ArgsTest.py, line 814:\n def __init__(self, a, b, c, *args, **kwargs):';658 $m.__track_lines__[815] = 'ArgsTest.py, line 815:\n self.x = (a, b, c, args, kwargs)';659 $m.__track_lines__[817] = 'ArgsTest.py, line 817:\n class ArgsTestClass:';660 $m.__track_lines__[818] = 'ArgsTest.py, line 818:\n def foo(self, a, b, c):';661 $m.__track_lines__[819] = 'ArgsTest.py, line 819:\n return [a, b, c]';662 $m.__track_lines__[821] = 'ArgsTest.py, line 821:\n def foo2(self, a=None, b=None, c=None):';663 $m.__track_lines__[822] = 'ArgsTest.py, line 822:\n return [a, b, c]';664 $m.__track_lines__[824] = 'ArgsTest.py, line 824:\n def foo3(self, a=1, b=2, c=3):';665 $m.__track_lines__[825] = 'ArgsTest.py, line 825:\n return [a, b, c]';666 $m.__track_lines__[827] = 'ArgsTest.py, line 827:\n def foo4(self, *args):';667 $m.__track_lines__[828] = 'ArgsTest.py, line 828:\n return args';668 $m.__track_lines__[830] = 'ArgsTest.py, line 830:\n def foo5(self, **kwargs):';669 $m.__track_lines__[831] = 'ArgsTest.py, line 831:\n return kwargs';670 $m.__track_lines__[833] = 'ArgsTest.py, line 833:\n def foo6(self, *args, **kwargs):';671 $m.__track_lines__[834] = 'ArgsTest.py, line 834:\n return (args, kwargs)';672 $m.__track_lines__[836] = 'ArgsTest.py, line 836:\n def foo7(self, a, *args, **kwargs):';673 $m.__track_lines__[837] = 'ArgsTest.py, line 837:\n return (a, args, kwargs)';674 $m.__track_lines__[839] = 'ArgsTest.py, line 839:\n def foo8(self, a, **kwargs):';675 $m.__track_lines__[840] = 'ArgsTest.py, line 840:\n return (a, kwargs)';676 $m.__track_lines__[843] = 'ArgsTest.py, line 843:\n class ArgsTestClass2:';677 $m.__track_lines__[845] = 'ArgsTest.py, line 844:\n @staticmethod ... def foo(a, b, c):';678 $m.__track_lines__[846] = 'ArgsTest.py, line 846:\n return [a, b, c]';679 $m.__track_lines__[849] = 'ArgsTest.py, line 848:\n @staticmethod ... def foo2(a=None, b=None, c=None):';680 $m.__track_lines__[850] = 'ArgsTest.py, line 850:\n return [a, b, c]';681 $m.__track_lines__[853] = 'ArgsTest.py, line 852:\n @staticmethod ... def foo3(a=1, b=2, c=3):';682 $m.__track_lines__[854] = 'ArgsTest.py, line 854:\n return [a, b, c]';683 $m.__track_lines__[857] = 'ArgsTest.py, line 856:\n @staticmethod ... def foo4(*args):';684 $m.__track_lines__[858] = 'ArgsTest.py, line 858:\n return args';685 $m.__track_lines__[861] = 'ArgsTest.py, line 860:\n @staticmethod ... def foo5(**kwargs):';686 $m.__track_lines__[862] = 'ArgsTest.py, line 862:\n return kwargs';687 $m.__track_lines__[865] = 'ArgsTest.py, line 864:\n @staticmethod ... def foo6(*args, **kwargs):';688 $m.__track_lines__[866] = 'ArgsTest.py, line 866:\n return (args, kwargs)';689 $m.__track_lines__[869] = 'ArgsTest.py, line 868:\n @staticmethod ... def foo7(a, *args, **kwargs):';690 $m.__track_lines__[870] = 'ArgsTest.py, line 870:\n return (a, args, kwargs)';691 $m.__track_lines__[873] = 'ArgsTest.py, line 872:\n @staticmethod ... def foo8(a, **kwargs):';692 $m.__track_lines__[874] = 'ArgsTest.py, line 874:\n return (a, kwargs)';693 $m.__track_lines__[876] = 'ArgsTest.py, line 876:\n class ArgsTestClass3:';694 $m.__track_lines__[878] = 'ArgsTest.py, line 877:\n @classmethod ... def foo(self, a, b, c):';695 $m.__track_lines__[879] = 'ArgsTest.py, line 879:\n return [a, b, c]';696 $m.__track_lines__[882] = 'ArgsTest.py, line 881:\n @classmethod ... def foo2(self, a=None, b=None, c=None):';697 $m.__track_lines__[883] = 'ArgsTest.py, line 883:\n return [a, b, c]';698 $m.__track_lines__[886] = 'ArgsTest.py, line 885:\n @classmethod ... def foo3(self, a=1, b=2, c=3):';699 $m.__track_lines__[887] = 'ArgsTest.py, line 887:\n return [a, b, c]';700 $m.__track_lines__[890] = 'ArgsTest.py, line 889:\n @classmethod ... def foo4(self, *args):';701 $m.__track_lines__[891] = 'ArgsTest.py, line 891:\n return args';702 $m.__track_lines__[894] = 'ArgsTest.py, line 893:\n @classmethod ... def foo5(self, **kwargs):';703 $m.__track_lines__[895] = 'ArgsTest.py, line 895:\n return kwargs';704 $m.__track_lines__[898] = 'ArgsTest.py, line 897:\n @classmethod ... def foo6(self, *args, **kwargs):';705 $m.__track_lines__[899] = 'ArgsTest.py, line 899:\n return (args, kwargs)';706 $m.__track_lines__[902] = 'ArgsTest.py, line 901:\n @classmethod ... def foo7(self, a, *args, **kwargs):';707 $m.__track_lines__[903] = 'ArgsTest.py, line 903:\n return (a, args, kwargs)';708 $m.__track_lines__[906] = 'ArgsTest.py, line 905:\n @classmethod ... def foo8(self, a, **kwargs):';709 $m.__track_lines__[907] = 'ArgsTest.py, line 907:\n return (a, kwargs)';710 $m.__track_lines__[910] = 'ArgsTest.py, line 910:\n class KwArgs:';711 $m.__track_lines__[911] = 'ArgsTest.py, line 911:\n def __init__(self, z=7, zz=77, **kwargs):';712 $m.__track_lines__[912] = 'ArgsTest.py, line 912:\n self.kwargs = kwargs';713 $m.__track_lines__[913] = "ArgsTest.py, line 913:\n self.kwargs['z'] = z # XXX this causes problems: kwargs is undefined";714 $m.__track_lines__[915] = 'ArgsTest.py, line 915:\n def set_kwargs(self, z=8, **kwargs):';715 $m.__track_lines__[916] = 'ArgsTest.py, line 916:\n self.kwargs = kwargs';716 $m.__track_lines__[917] = "ArgsTest.py, line 917:\n self.kwargs['z'] = z";717 $m.__track_lines__[919] = 'ArgsTest.py, line 919:\n class Kwargs2(KwArgs):';718 $m.__track_lines__[921] = 'ArgsTest.py, line 921:\n def __init__(self, **kwargs):';719 $m.__track_lines__[922] = 'ArgsTest.py, line 922:\n KwArgs.__init__(self, **kwargs)';720 $m.__track_lines__[924] = 'ArgsTest.py, line 924:\n def set_kwargs2(self, **kwargs):';721 $m.__track_lines__[925] = 'ArgsTest.py, line 925:\n KwArgs.set_kwargs(self, **kwargs)';722 $m.__track_lines__[927] = 'ArgsTest.py, line 927:\n def set_kwargs3(self, **kwargs):';723 $m.__track_lines__[928] = 'ArgsTest.py, line 928:\n skw = getattr(self, "set_kwargs")';724 $m.__track_lines__[929] = 'ArgsTest.py, line 929:\n skw(**kwargs)';725 $m.__track_lines__[931] = 'ArgsTest.py, line 931:\n def kw_args(**kwargs):';726 $m.__track_lines__[932] = 'ArgsTest.py, line 932:\n return kwargs';727 $m.__track_lines__[934] = 'ArgsTest.py, line 934:\n def kw_args2(**kwargs):';728 $m.__track_lines__[935] = 'ArgsTest.py, line 935:\n return kw_args(**kwargs)';729 $m.__track_lines__[937] = 'ArgsTest.py, line 937:\n def varargs_kwargs(arg1, arg2=2, *args, **kwargs):';730 $m.__track_lines__[938] = 'ArgsTest.py, line 938:\n return (arg1, arg2, args, kwargs)';731 $m.__track_lines__[940] = 'ArgsTest.py, line 940:\n def varargs_kwargs2(arg1, arg2=3, *args, **kwargs):';732 $m.__track_lines__[941] = 'ArgsTest.py, line 941:\n return varargs_kwargs(arg1, arg2, *args, **kwargs)';733 var $constant_int_0 = new $p['int'](0);734 var $constant_int_1 = new $p['int'](1);735 var $constant_int_2 = new $p['int'](2);736 var $constant_int_3 = new $p['int'](3);737 var $constant_int_4 = new $p['int'](4);738 var $constant_int_5 = new $p['int'](5);739 var $constant_int_6 = new $p['int'](6);740 var $constant_int_7 = new $p['int'](7);741 var $constant_int_8 = new $p['int'](8);742 var $constant_int_9 = new $p['int'](9);743 var $constant_int_10 = new $p['int'](10);744 var $constant_int_77 = new $p['int'](77);745 $pyjs.track.module='ArgsTest';746 $pyjs.track.lineno=1;747 $pyjs.track.lineno=1;748 $pyjs.track={module:$pyjs.track.module,lineno:$pyjs.track.lineno};$pyjs.trackstack.push($pyjs.track);749 $m['UnitTest'] = $p['___import___']('UnitTest.UnitTest', null, null, false);750 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);751 $pyjs.track.lineno=3;752 $m['aArgs'] = function() {753 if ($pyjs.options.arg_count && arguments.length < 0) $pyjs__exception_func_param(arguments.callee.__name__, 0, null, arguments.length);754 var args = $p['tuple']($pyjs_array_slice.call(arguments,0,arguments.length));755 $pyjs.track={module:'ArgsTest',lineno:3};$pyjs.trackstack.push($pyjs.track);756 $pyjs.track.module='ArgsTest';757 $pyjs.track.lineno=3;758 $pyjs.track.lineno=4;759 $pyjs.track.lineno=4;760 var $pyjs__ret = args;761 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);762 return $pyjs__ret;763 };764 $m['aArgs'].__name__ = 'aArgs';765 $m['aArgs'].__bind_type__ = 0;766 $m['aArgs'].__args__ = ['args',null];767 $pyjs.track.lineno=6;768 $m['ftest'] = function(a, b) {769 if ($pyjs.options.arg_count && arguments.length != 2) $pyjs__exception_func_param(arguments.callee.__name__, 2, 2, arguments.length);770 $pyjs.track={module:'ArgsTest',lineno:6};$pyjs.trackstack.push($pyjs.track);771 $pyjs.track.module='ArgsTest';772 $pyjs.track.lineno=6;773 $pyjs.track.lineno=7;774 $pyjs.track.lineno=7;775 var $pyjs__ret = $p['list']([a, b]);776 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);777 return $pyjs__ret;778 };779 $m['ftest'].__name__ = 'ftest';780 $m['ftest'].__bind_type__ = 0;781 $m['ftest'].__args__ = [null,null,['a'],['b']];782 $pyjs.track.lineno=9;783 $m['ArgsTest'] = (function(){784 var $cls_definition = new Object();785 var $method;786 $cls_definition.__module__ = 'ArgsTest';787 $cls_definition.__md5__ = '912c959ea80c5980444629f7cf5ab5ed';788 $pyjs.track.lineno=11;789 $method = $pyjs__bind_method2('testNaming1', function() {790 if (this.__is_instance__ === true) {791 var self = this;792 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);793 } else {794 var self = arguments[0];795 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);796 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);797 }798 if ($pyjs.options.arg_instance_type) {799 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {800 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {801 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);802 }803 }804 }805 var values,$4,$2,$3,$1;806 $pyjs.track={module:'ArgsTest', lineno:11};$pyjs.trackstack.push($pyjs.track);807 $pyjs.track.module='ArgsTest';808 $pyjs.track.lineno=11;809 $pyjs.track.lineno=12;810 values = $m['ftest']($constant_int_1, $constant_int_2);811 $pyjs.track.lineno=13;812 self['assertEquals']((typeof ($1=values).__array != 'undefined'?813 ((typeof $1.__array[$2=$constant_int_0]) != 'undefined'?$1.__array[$2]:814 $1.__getitem__($2)):815 $1.__getitem__($constant_int_0)), $constant_int_1);816 $pyjs.track.lineno=14;817 self['assertEquals']((typeof ($3=values).__array != 'undefined'?818 ((typeof $3.__array[$4=$constant_int_1]) != 'undefined'?$3.__array[$4]:819 $3.__getitem__($4)):820 $3.__getitem__($constant_int_1)), $constant_int_2);821 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);822 return null;823 }824 , 1, [null,null,['self']]);825 $cls_definition['testNaming1'] = $method;826 $pyjs.track.lineno=16;827 $method = $pyjs__bind_method2('testNaming2', function() {828 if (this.__is_instance__ === true) {829 var self = this;830 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);831 } else {832 var self = arguments[0];833 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);834 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);835 }836 if ($pyjs.options.arg_instance_type) {837 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {838 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {839 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);840 }841 }842 }843 var values,$8,$6,$7,$5;844 $pyjs.track={module:'ArgsTest', lineno:16};$pyjs.trackstack.push($pyjs.track);845 $pyjs.track.module='ArgsTest';846 $pyjs.track.lineno=16;847 $pyjs.track.lineno=17;848 values = $pyjs_kwargs_call(null, $m['ftest'], null, null, [{a:$constant_int_1, b:$constant_int_2}]);849 $pyjs.track.lineno=18;850 self['assertEquals']((typeof ($5=values).__array != 'undefined'?851 ((typeof $5.__array[$6=$constant_int_0]) != 'undefined'?$5.__array[$6]:852 $5.__getitem__($6)):853 $5.__getitem__($constant_int_0)), $constant_int_1);854 $pyjs.track.lineno=19;855 self['assertEquals']((typeof ($7=values).__array != 'undefined'?856 ((typeof $7.__array[$8=$constant_int_1]) != 'undefined'?$7.__array[$8]:857 $7.__getitem__($8)):858 $7.__getitem__($constant_int_1)), $constant_int_2);859 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);860 return null;861 }862 , 1, [null,null,['self']]);863 $cls_definition['testNaming2'] = $method;864 $pyjs.track.lineno=21;865 $method = $pyjs__bind_method2('testNaming3', function() {866 if (this.__is_instance__ === true) {867 var self = this;868 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);869 } else {870 var self = arguments[0];871 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);872 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);873 }874 if ($pyjs.options.arg_instance_type) {875 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {876 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {877 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);878 }879 }880 }881 var $10,$11,$12,values,$9;882 $pyjs.track={module:'ArgsTest', lineno:21};$pyjs.trackstack.push($pyjs.track);883 $pyjs.track.module='ArgsTest';884 $pyjs.track.lineno=21;885 $pyjs.track.lineno=22;886 values = $pyjs_kwargs_call(null, $m['ftest'], null, null, [{b:$constant_int_2}, $constant_int_1]);887 $pyjs.track.lineno=23;888 self['assertEquals']((typeof ($9=values).__array != 'undefined'?889 ((typeof $9.__array[$10=$constant_int_0]) != 'undefined'?$9.__array[$10]:890 $9.__getitem__($10)):891 $9.__getitem__($constant_int_0)), $constant_int_1);892 $pyjs.track.lineno=24;893 self['assertEquals']((typeof ($11=values).__array != 'undefined'?894 ((typeof $11.__array[$12=$constant_int_1]) != 'undefined'?$11.__array[$12]:895 $11.__getitem__($12)):896 $11.__getitem__($constant_int_1)), $constant_int_2);897 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);898 return null;899 }900 , 1, [null,null,['self']]);901 $cls_definition['testNaming3'] = $method;902 $pyjs.track.lineno=26;903 $method = $pyjs__bind_method2('testNaming4', function() {904 if (this.__is_instance__ === true) {905 var self = this;906 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);907 } else {908 var self = arguments[0];909 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);910 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);911 }912 if ($pyjs.options.arg_instance_type) {913 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {914 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {915 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);916 }917 }918 }919 var $pyjs_try_err,values,t,exc_raised;920 $pyjs.track={module:'ArgsTest', lineno:26};$pyjs.trackstack.push($pyjs.track);921 $pyjs.track.module='ArgsTest';922 $pyjs.track.lineno=26;923 $pyjs.track.lineno=27;924 exc_raised = false;925 $pyjs.track.lineno=28;926 var $pyjs__trackstack_size_1 = $pyjs.trackstack.length;927 try {928 $pyjs.track.lineno=29;929 values = $pyjs_kwargs_call(null, $m['ftest'], null, null, [{c:$constant_int_2}, $constant_int_1]);930 } catch($pyjs_try_err) {931 $pyjs.__last_exception_stack__ = sys.save_exception_stack($pyjs__trackstack_size_1 - 1);932 $pyjs.__active_exception_stack__ = null;933 $pyjs_try_err = $p['_errorMapping']($pyjs_try_err);934 var $pyjs_try_err_name = (typeof $pyjs_try_err.__name__ == 'undefined' ? $pyjs_try_err.name : $pyjs_try_err.__name__ );935 $pyjs.__last_exception__ = {error: $pyjs_try_err, module: $m};936 if ($pyjs.trackstack.length > $pyjs__trackstack_size_1) {937 $pyjs.trackstack = $pyjs.trackstack.slice(0,$pyjs__trackstack_size_1);938 $pyjs.track = $pyjs.trackstack.slice(-1)[0];939 }940 $pyjs.track.module='ArgsTest';941 if (($pyjs_try_err_name == $p['TypeError'].__name__)||$p['_isinstance']($pyjs_try_err,$p['TypeError'])) {942 t = $pyjs_try_err;943 $pyjs.track.lineno=31;944 exc_raised = true;945 } else { $pyjs.__active_exception_stack__ = $pyjs.__last_exception_stack__; $pyjs.__last_exception_stack__ = null; throw $pyjs_try_err; }946 }947 $pyjs.track.lineno=32;948 self['assertTrue'](exc_raised, "TypeError 'c' unexpected arg not raised");949 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);950 return null;951 }952 , 1, [null,null,['self']]);953 $cls_definition['testNaming4'] = $method;954 $pyjs.track.lineno=34;955 $method = $pyjs__bind_method2('testNaming5', function() {956 if (this.__is_instance__ === true) {957 var self = this;958 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);959 } else {960 var self = arguments[0];961 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);962 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);963 }964 if ($pyjs.options.arg_instance_type) {965 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {966 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {967 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);968 }969 }970 }971 var $pyjs_try_err,values,t,exc_raised;972 $pyjs.track={module:'ArgsTest', lineno:34};$pyjs.trackstack.push($pyjs.track);973 $pyjs.track.module='ArgsTest';974 $pyjs.track.lineno=34;975 $pyjs.track.lineno=35;976 exc_raised = false;977 $pyjs.track.lineno=36;978 var $pyjs__trackstack_size_1 = $pyjs.trackstack.length;979 try {980 $pyjs.track.lineno=37;981 values = $m['ftest']();982 } catch($pyjs_try_err) {983 $pyjs.__last_exception_stack__ = sys.save_exception_stack($pyjs__trackstack_size_1 - 1);984 $pyjs.__active_exception_stack__ = null;985 $pyjs_try_err = $p['_errorMapping']($pyjs_try_err);986 var $pyjs_try_err_name = (typeof $pyjs_try_err.__name__ == 'undefined' ? $pyjs_try_err.name : $pyjs_try_err.__name__ );987 $pyjs.__last_exception__ = {error: $pyjs_try_err, module: $m};988 if ($pyjs.trackstack.length > $pyjs__trackstack_size_1) {989 $pyjs.trackstack = $pyjs.trackstack.slice(0,$pyjs__trackstack_size_1);990 $pyjs.track = $pyjs.trackstack.slice(-1)[0];991 }992 $pyjs.track.module='ArgsTest';993 if (($pyjs_try_err_name == $p['TypeError'].__name__)||$p['_isinstance']($pyjs_try_err,$p['TypeError'])) {994 t = $pyjs_try_err;995 $pyjs.track.lineno=39;996 exc_raised = true;997 } else { $pyjs.__active_exception_stack__ = $pyjs.__last_exception_stack__; $pyjs.__last_exception_stack__ = null; throw $pyjs_try_err; }998 }999 $pyjs.track.lineno=40;1000 self['assertTrue'](exc_raised, "TypeError 'ftest() takes exactly 2 arguments (0 given)' not raised");1001 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);1002 return null;1003 }1004 , 1, [null,null,['self']]);1005 $cls_definition['testNaming5'] = $method;1006 $pyjs.track.lineno=42;1007 $method = $pyjs__bind_method2('testSimpleCall', function() {1008 if (this.__is_instance__ === true) {1009 var self = this;1010 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);1011 } else {1012 var self = arguments[0];1013 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);1014 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);1015 }1016 if ($pyjs.options.arg_instance_type) {1017 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {1018 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {1019 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);1020 }1021 }1022 }1023 var $14,$15,$16,$17,$13,$21,$20,$22,$18,$19,$24,values,$23;1024 $pyjs.track={module:'ArgsTest', lineno:42};$pyjs.trackstack.push($pyjs.track);1025 $pyjs.track.module='ArgsTest';1026 $pyjs.track.lineno=42;1027 $pyjs.track.lineno=43;1028 values = (typeof foo == "undefined"?$m.foo:foo)($constant_int_1, $constant_int_2, $constant_int_3);1029 $pyjs.track.lineno=44;1030 self['assertEquals']((typeof ($13=values).__array != 'undefined'?1031 ((typeof $13.__array[$14=$constant_int_0]) != 'undefined'?$13.__array[$14]:1032 $13.__getitem__($14)):1033 $13.__getitem__($constant_int_0)), $constant_int_1);1034 $pyjs.track.lineno=45;1035 self['assertEquals']((typeof ($15=values).__array != 'undefined'?1036 ((typeof $15.__array[$16=$constant_int_1]) != 'undefined'?$15.__array[$16]:1037 $15.__getitem__($16)):1038 $15.__getitem__($constant_int_1)), $constant_int_2);1039 $pyjs.track.lineno=46;1040 self['assertEquals']((typeof ($17=values).__array != 'undefined'?1041 ((typeof $17.__array[$18=$constant_int_2]) != 'undefined'?$17.__array[$18]:1042 $17.__getitem__($18)):1043 $17.__getitem__($constant_int_2)), $constant_int_3);1044 $pyjs.track.lineno=48;1045 values = (typeof foo2 == "undefined"?$m.foo2:foo2)($constant_int_1, $constant_int_2, $constant_int_3);1046 $pyjs.track.lineno=49;1047 self['assertEquals']((typeof ($19=values).__array != 'undefined'?1048 ((typeof $19.__array[$20=$constant_int_0]) != 'undefined'?$19.__array[$20]:1049 $19.__getitem__($20)):1050 $19.__getitem__($constant_int_0)), $constant_int_1);1051 $pyjs.track.lineno=50;1052 self['assertEquals']((typeof ($21=values).__array != 'undefined'?1053 ((typeof $21.__array[$22=$constant_int_1]) != 'undefined'?$21.__array[$22]:1054 $21.__getitem__($22)):1055 $21.__getitem__($constant_int_1)), $constant_int_2);1056 $pyjs.track.lineno=51;1057 self['assertEquals']((typeof ($23=values).__array != 'undefined'?1058 ((typeof $23.__array[$24=$constant_int_2]) != 'undefined'?$23.__array[$24]:1059 $23.__getitem__($24)):1060 $23.__getitem__($constant_int_2)), $constant_int_3);1061 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);1062 return null;1063 }1064 , 1, [null,null,['self']]);1065 $cls_definition['testSimpleCall'] = $method;1066 $pyjs.track.lineno=53;1067 $method = $pyjs__bind_method2('testKeywordCall1', function() {1068 if (this.__is_instance__ === true) {1069 var self = this;1070 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);1071 } else {1072 var self = arguments[0];1073 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);1074 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);1075 }1076 if ($pyjs.options.arg_instance_type) {1077 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {1078 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {1079 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);1080 }1081 }1082 }1083 var $29,$28,$25,$27,$26,values,$30;1084 $pyjs.track={module:'ArgsTest', lineno:53};$pyjs.trackstack.push($pyjs.track);1085 $pyjs.track.module='ArgsTest';1086 $pyjs.track.lineno=53;1087 $pyjs.track.lineno=54;1088 values = $pyjs_kwargs_call(null, (typeof foo2 == "undefined"?$m.foo2:foo2), null, null, [{c:$constant_int_3, b:$constant_int_2, a:$constant_int_1}]);1089 $pyjs.track.lineno=55;1090 self['assertEquals']((typeof ($25=values).__array != 'undefined'?1091 ((typeof $25.__array[$26=$constant_int_0]) != 'undefined'?$25.__array[$26]:1092 $25.__getitem__($26)):1093 $25.__getitem__($constant_int_0)), $constant_int_1);1094 $pyjs.track.lineno=56;1095 self['assertEquals']((typeof ($27=values).__array != 'undefined'?1096 ((typeof $27.__array[$28=$constant_int_1]) != 'undefined'?$27.__array[$28]:1097 $27.__getitem__($28)):1098 $27.__getitem__($constant_int_1)), $constant_int_2);1099 $pyjs.track.lineno=57;1100 self['assertEquals']((typeof ($29=values).__array != 'undefined'?1101 ((typeof $29.__array[$30=$constant_int_2]) != 'undefined'?$29.__array[$30]:1102 $29.__getitem__($30)):1103 $29.__getitem__($constant_int_2)), $constant_int_3);1104 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);1105 return null;1106 }1107 , 1, [null,null,['self']]);1108 $cls_definition['testKeywordCall1'] = $method;1109 $pyjs.track.lineno=59;1110 $method = $pyjs__bind_method2('testKeywordCall2', function() {1111 if (this.__is_instance__ === true) {1112 var self = this;1113 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);1114 } else {1115 var self = arguments[0];1116 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);1117 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);1118 }1119 if ($pyjs.options.arg_instance_type) {1120 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {1121 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {1122 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);1123 }1124 }1125 }1126 var $36,$34,$35,$32,$33,$31,values;1127 $pyjs.track={module:'ArgsTest', lineno:59};$pyjs.trackstack.push($pyjs.track);1128 $pyjs.track.module='ArgsTest';1129 $pyjs.track.lineno=59;1130 $pyjs.track.lineno=60;1131 values = $pyjs_kwargs_call(null, (typeof foo2 == "undefined"?$m.foo2:foo2), null, null, [{b:$constant_int_2, a:$constant_int_1, c:$constant_int_3}]);1132 $pyjs.track.lineno=61;1133 self['assertEquals']((typeof ($31=values).__array != 'undefined'?1134 ((typeof $31.__array[$32=$constant_int_0]) != 'undefined'?$31.__array[$32]:1135 $31.__getitem__($32)):1136 $31.__getitem__($constant_int_0)), $constant_int_1);1137 $pyjs.track.lineno=62;1138 self['assertEquals']((typeof ($33=values).__array != 'undefined'?1139 ((typeof $33.__array[$34=$constant_int_1]) != 'undefined'?$33.__array[$34]:1140 $33.__getitem__($34)):1141 $33.__getitem__($constant_int_1)), $constant_int_2);1142 $pyjs.track.lineno=63;1143 self['assertEquals']((typeof ($35=values).__array != 'undefined'?1144 ((typeof $35.__array[$36=$constant_int_2]) != 'undefined'?$35.__array[$36]:1145 $35.__getitem__($36)):1146 $35.__getitem__($constant_int_2)), $constant_int_3);1147 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);1148 return null;1149 }1150 , 1, [null,null,['self']]);1151 $cls_definition['testKeywordCall2'] = $method;1152 $pyjs.track.lineno=65;1153 $method = $pyjs__bind_method2('testKeywordCall3', function() {1154 if (this.__is_instance__ === true) {1155 var self = this;1156 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);1157 } else {1158 var self = arguments[0];1159 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);1160 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);1161 }1162 if ($pyjs.options.arg_instance_type) {1163 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {1164 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {1165 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);1166 }1167 }1168 }1169 var $38,$39,$37,values,$42,$41,$40;1170 $pyjs.track={module:'ArgsTest', lineno:65};$pyjs.trackstack.push($pyjs.track);1171 $pyjs.track.module='ArgsTest';1172 $pyjs.track.lineno=65;1173 $pyjs.track.lineno=66;1174 values = $pyjs_kwargs_call(null, (typeof foo2 == "undefined"?$m.foo2:foo2), null, null, [{c:$constant_int_3}, $constant_int_1]);1175 $pyjs.track.lineno=67;1176 self['assertEquals']((typeof ($37=values).__array != 'undefined'?1177 ((typeof $37.__array[$38=$constant_int_0]) != 'undefined'?$37.__array[$38]:1178 $37.__getitem__($38)):1179 $37.__getitem__($constant_int_0)), $constant_int_1);1180 $pyjs.track.lineno=68;1181 self['assertEquals']((typeof ($39=values).__array != 'undefined'?1182 ((typeof $39.__array[$40=$constant_int_1]) != 'undefined'?$39.__array[$40]:1183 $39.__getitem__($40)):1184 $39.__getitem__($constant_int_1)), null);1185 $pyjs.track.lineno=69;1186 self['assertEquals']((typeof ($41=values).__array != 'undefined'?1187 ((typeof $41.__array[$42=$constant_int_2]) != 'undefined'?$41.__array[$42]:1188 $41.__getitem__($42)):1189 $41.__getitem__($constant_int_2)), $constant_int_3);1190 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);1191 return null;1192 }1193 , 1, [null,null,['self']]);1194 $cls_definition['testKeywordCall3'] = $method;1195 $pyjs.track.lineno=71;1196 $method = $pyjs__bind_method2('testKeywordCall4', function() {1197 if (this.__is_instance__ === true) {1198 var self = this;1199 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);1200 } else {1201 var self = arguments[0];1202 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);1203 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);1204 }1205 if ($pyjs.options.arg_instance_type) {1206 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {1207 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {1208 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);1209 }1210 }1211 }1212 var $48,values,$43,$47,$46,$45,$44;1213 $pyjs.track={module:'ArgsTest', lineno:71};$pyjs.trackstack.push($pyjs.track);1214 $pyjs.track.module='ArgsTest';1215 $pyjs.track.lineno=71;1216 $pyjs.track.lineno=72;1217 values = (typeof foo2 == "undefined"?$m.foo2:foo2)();1218 $pyjs.track.lineno=73;1219 self['assertEquals']((typeof ($43=values).__array != 'undefined'?1220 ((typeof $43.__array[$44=$constant_int_0]) != 'undefined'?$43.__array[$44]:1221 $43.__getitem__($44)):1222 $43.__getitem__($constant_int_0)), null);1223 $pyjs.track.lineno=74;1224 self['assertEquals']((typeof ($45=values).__array != 'undefined'?1225 ((typeof $45.__array[$46=$constant_int_1]) != 'undefined'?$45.__array[$46]:1226 $45.__getitem__($46)):1227 $45.__getitem__($constant_int_1)), null);1228 $pyjs.track.lineno=75;1229 self['assertEquals']((typeof ($47=values).__array != 'undefined'?1230 ((typeof $47.__array[$48=$constant_int_2]) != 'undefined'?$47.__array[$48]:1231 $47.__getitem__($48)):1232 $47.__getitem__($constant_int_2)), null);1233 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);1234 return null;1235 }1236 , 1, [null,null,['self']]);1237 $cls_definition['testKeywordCall4'] = $method;1238 $pyjs.track.lineno=77;1239 $method = $pyjs__bind_method2('testKeywordCall5', function() {1240 if (this.__is_instance__ === true) {1241 var self = this;1242 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);1243 } else {1244 var self = arguments[0];1245 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);1246 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);1247 }1248 if ($pyjs.options.arg_instance_type) {1249 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {1250 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {1251 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);1252 }1253 }1254 }1255 var $49,values,$50,$51,$52,$53,$54;1256 $pyjs.track={module:'ArgsTest', lineno:77};$pyjs.trackstack.push($pyjs.track);1257 $pyjs.track.module='ArgsTest';1258 $pyjs.track.lineno=77;1259 $pyjs.track.lineno=78;1260 values = $pyjs_kwargs_call(null, (typeof foo2 == "undefined"?$m.foo2:foo2), null, null, [{c:true}]);1261 $pyjs.track.lineno=79;1262 self['assertEquals']((typeof ($49=values).__array != 'undefined'?1263 ((typeof $49.__array[$50=$constant_int_0]) != 'undefined'?$49.__array[$50]:1264 $49.__getitem__($50)):1265 $49.__getitem__($constant_int_0)), null);1266 $pyjs.track.lineno=80;1267 self['assertEquals']((typeof ($51=values).__array != 'undefined'?1268 ((typeof $51.__array[$52=$constant_int_1]) != 'undefined'?$51.__array[$52]:1269 $51.__getitem__($52)):1270 $51.__getitem__($constant_int_1)), null);1271 $pyjs.track.lineno=81;1272 self['assertEquals']((typeof ($53=values).__array != 'undefined'?1273 ((typeof $53.__array[$54=$constant_int_2]) != 'undefined'?$53.__array[$54]:1274 $53.__getitem__($54)):1275 $53.__getitem__($constant_int_2)), true);1276 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);1277 return null;1278 }1279 , 1, [null,null,['self']]);1280 $cls_definition['testKeywordCall5'] = $method;1281 $pyjs.track.lineno=83;1282 $method = $pyjs__bind_method2('testStarArgs', function() {1283 if (this.__is_instance__ === true) {1284 var self = this;1285 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);1286 } else {1287 var self = arguments[0];1288 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);1289 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);1290 }1291 if ($pyjs.options.arg_instance_type) {1292 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {1293 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {1294 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);1295 }1296 }1297 }1298 var e,exc,res,args,$add2,$add3,$pyjs_try_err,$add4,$add1,called;1299 $pyjs.track={module:'ArgsTest', lineno:83};$pyjs.trackstack.push($pyjs.track);1300 $pyjs.track.module='ArgsTest';1301 $pyjs.track.lineno=83;1302 $pyjs.track.lineno=84;1303 args = $p['tuple']([$constant_int_1, $constant_int_2]);1304 $pyjs.track.lineno=85;1305 res = $pyjs_kwargs_call(null, $m['aArgs'], args, null, [{}]);1306 $pyjs.track.lineno=86;1307 self['assertEquals'](args, res);1308 $pyjs.track.lineno=88;1309 args = '123';1310 $pyjs.track.lineno=89;1311 var $pyjs__trackstack_size_1 = $pyjs.trackstack.length;1312 try {1313 $pyjs.track.lineno=90;1314 res = $pyjs_kwargs_call(null, $m['aArgs'], args, null, [{}]);1315 $pyjs.track.lineno=91;1316 called = true;1317 $pyjs.track.lineno=92;1318 exc = null;1319 } catch($pyjs_try_err) {1320 $pyjs.__last_exception_stack__ = sys.save_exception_stack($pyjs__trackstack_size_1 - 1);1321 $pyjs.__active_exception_stack__ = null;1322 $pyjs_try_err = $p['_errorMapping']($pyjs_try_err);1323 var $pyjs_try_err_name = (typeof $pyjs_try_err.__name__ == 'undefined' ? $pyjs_try_err.name : $pyjs_try_err.__name__ );1324 $pyjs.__last_exception__ = {error: $pyjs_try_err, module: $m};1325 if ($pyjs.trackstack.length > $pyjs__trackstack_size_1) {1326 $pyjs.trackstack = $pyjs.trackstack.slice(0,$pyjs__trackstack_size_1);1327 $pyjs.track = $pyjs.trackstack.slice(-1)[0];1328 }1329 $pyjs.track.module='ArgsTest';1330 if (($pyjs_try_err_name == $p['TypeError'].__name__)||$p['_isinstance']($pyjs_try_err,$p['TypeError'])) {1331 e = $pyjs_try_err;1332 $pyjs.track.lineno=94;1333 called = false;1334 $pyjs.track.lineno=95;1335 exc = e;1336 } else { $pyjs.__active_exception_stack__ = $pyjs.__last_exception_stack__; $pyjs.__last_exception_stack__ = null; throw $pyjs_try_err; }1337 }1338 $pyjs.track.lineno=99;1339 self['assertTrue'](called, (typeof ($add3=(typeof ($add1='exception not expected but function called:')==typeof ($add2=$p['repr'](res)) && (typeof $add1=='number'||typeof $add1=='string')?1340 $add1+$add2:1341 $p['op_add']($add1,$add2)))==typeof ($add4=$p['repr'](exc)) && (typeof $add3=='number'||typeof $add3=='string')?1342 $add3+$add4:1343 $p['op_add']($add3,$add4)));1344 $pyjs.track.lineno=101;1345 self['assertEquals'](res, $p['tuple'](['1', '2', '3']));1346 $pyjs.track.lineno=104;1347 args = $constant_int_1;1348 $pyjs.track.lineno=105;1349 var $pyjs__trackstack_size_1 = $pyjs.trackstack.length;1350 try {1351 $pyjs.track.lineno=106;1352 res = $pyjs_kwargs_call(null, $m['aArgs'], args, null, [{}]);1353 $pyjs.track.lineno=107;1354 called = true;1355 } catch($pyjs_try_err) {1356 $pyjs.__last_exception_stack__ = sys.save_exception_stack($pyjs__trackstack_size_1 - 1);1357 $pyjs.__active_exception_stack__ = null;1358 $pyjs_try_err = $p['_errorMapping']($pyjs_try_err);1359 var $pyjs_try_err_name = (typeof $pyjs_try_err.__name__ == 'undefined' ? $pyjs_try_err.name : $pyjs_try_err.__name__ );1360 $pyjs.__last_exception__ = {error: $pyjs_try_err, module: $m};1361 if ($pyjs.trackstack.length > $pyjs__trackstack_size_1) {1362 $pyjs.trackstack = $pyjs.trackstack.slice(0,$pyjs__trackstack_size_1);1363 $pyjs.track = $pyjs.trackstack.slice(-1)[0];1364 }1365 $pyjs.track.module='ArgsTest';1366 if (($pyjs_try_err_name == $p['TypeError'].__name__)||$p['_isinstance']($pyjs_try_err,$p['TypeError'])) {1367 $pyjs.track.lineno=109;1368 called = false;1369 } else { $pyjs.__active_exception_stack__ = $pyjs.__last_exception_stack__; $pyjs.__last_exception_stack__ = null; throw $pyjs_try_err; }1370 }1371 $pyjs.track.lineno=111;1372 self['assertFalse'](called, 'exception expected but not raised - TypeError: aArgs() argument after * must be a sequence');1373 $pyjs.track.lineno=115;1374 args = $p['tuple']([$constant_int_1]);1375 $pyjs.track.lineno=116;1376 res = $pyjs_kwargs_call(null, $m['aArgs'], args, null, [{}]);1377 $pyjs.track.lineno=117;1378 self['assertEquals'](args, res);1379 $pyjs.track.lineno=119;1380 args = $p['tuple']([$constant_int_1]);1381 $pyjs.track.lineno=120;1382 res = $m['aArgs'](args);1383 $pyjs.track.lineno=121;1384 self['assertEquals']($p['tuple']([args]), res);1385 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);1386 return null;1387 }1388 , 1, [null,null,['self']]);1389 $cls_definition['testStarArgs'] = $method;1390 $pyjs.track.lineno=124;1391 $method = $pyjs__bind_method2('testDefaultValuesCall', function() {1392 if (this.__is_instance__ === true) {1393 var self = this;1394 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);1395 } else {1396 var self = arguments[0];1397 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);1398 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);1399 }1400 if ($pyjs.options.arg_instance_type) {1401 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {1402 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {1403 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);1404 }1405 }1406 }1407 var $72,$68,$70,$66,$69,$60,$58,$59,$71,values,$63,$65,$64,$67,$62,$61,$55,$56,$57;1408 $pyjs.track={module:'ArgsTest', lineno:124};$pyjs.trackstack.push($pyjs.track);1409 $pyjs.track.module='ArgsTest';1410 $pyjs.track.lineno=124;1411 $pyjs.track.lineno=125;1412 values = $pyjs_kwargs_call(null, (typeof foo3 == "undefined"?$m.foo3:foo3), null, null, [{b:$constant_int_7}]);1413 $pyjs.track.lineno=126;1414 self['assertEquals']((typeof ($55=values).__array != 'undefined'?1415 ((typeof $55.__array[$56=$constant_int_0]) != 'undefined'?$55.__array[$56]:1416 $55.__getitem__($56)):1417 $55.__getitem__($constant_int_0)), $constant_int_1);1418 $pyjs.track.lineno=127;1419 self['assertEquals']((typeof ($57=values).__array != 'undefined'?1420 ((typeof $57.__array[$58=$constant_int_1]) != 'undefined'?$57.__array[$58]:1421 $57.__getitem__($58)):1422 $57.__getitem__($constant_int_1)), $constant_int_7);1423 $pyjs.track.lineno=128;1424 self['assertEquals']((typeof ($59=values).__array != 'undefined'?1425 ((typeof $59.__array[$60=$constant_int_2]) != 'undefined'?$59.__array[$60]:1426 $59.__getitem__($60)):1427 $59.__getitem__($constant_int_2)), $constant_int_3);1428 $pyjs.track.lineno=130;1429 values = $pyjs_kwargs_call(null, (typeof foo3 == "undefined"?$m.foo3:foo3), null, null, [{a:$constant_int_9}]);1430 $pyjs.track.lineno=131;1431 self['assertEquals']((typeof ($61=values).__array != 'undefined'?1432 ((typeof $61.__array[$62=$constant_int_0]) != 'undefined'?$61.__array[$62]:1433 $61.__getitem__($62)):1434 $61.__getitem__($constant_int_0)), $constant_int_9);1435 $pyjs.track.lineno=132;1436 self['assertEquals']((typeof ($63=values).__array != 'undefined'?1437 ((typeof $63.__array[$64=$constant_int_1]) != 'undefined'?$63.__array[$64]:1438 $63.__getitem__($64)):1439 $63.__getitem__($constant_int_1)), $constant_int_2);1440 $pyjs.track.lineno=133;1441 self['assertEquals']((typeof ($65=values).__array != 'undefined'?1442 ((typeof $65.__array[$66=$constant_int_2]) != 'undefined'?$65.__array[$66]:1443 $65.__getitem__($66)):1444 $65.__getitem__($constant_int_2)), $constant_int_3);1445 $pyjs.track.lineno=135;1446 values = (typeof foo3 == "undefined"?$m.foo3:foo3)();1447 $pyjs.track.lineno=136;1448 self['assertEquals']((typeof ($67=values).__array != 'undefined'?1449 ((typeof $67.__array[$68=$constant_int_0]) != 'undefined'?$67.__array[$68]:1450 $67.__getitem__($68)):1451 $67.__getitem__($constant_int_0)), $constant_int_1);1452 $pyjs.track.lineno=137;1453 self['assertEquals']((typeof ($69=values).__array != 'undefined'?1454 ((typeof $69.__array[$70=$constant_int_1]) != 'undefined'?$69.__array[$70]:1455 $69.__getitem__($70)):1456 $69.__getitem__($constant_int_1)), $constant_int_2);1457 $pyjs.track.lineno=138;1458 self['assertEquals']((typeof ($71=values).__array != 'undefined'?1459 ((typeof $71.__array[$72=$constant_int_2]) != 'undefined'?$71.__array[$72]:1460 $71.__getitem__($72)):1461 $71.__getitem__($constant_int_2)), $constant_int_3);1462 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);1463 return null;1464 }1465 , 1, [null,null,['self']]);1466 $cls_definition['testDefaultValuesCall'] = $method;1467 $pyjs.track.lineno=140;1468 $method = $pyjs__bind_method2('testVarargsCall', function() {1469 if (this.__is_instance__ === true) {1470 var self = this;1471 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);1472 } else {1473 var self = arguments[0];1474 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);1475 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);1476 }1477 if ($pyjs.options.arg_instance_type) {1478 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {1479 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {1480 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);1481 }1482 }1483 }1484 var $98,$99,$94,$95,$96,$97,$90,$91,$92,$93,$107,$106,$108,$101,$100,$103,$102,$105,$104,$89,$88,$87,$86,$85,$84,$83,$82,$81,$80,$73,$76,$77,$74,$75,$78,$79,values;1485 $pyjs.track={module:'ArgsTest', lineno:140};$pyjs.trackstack.push($pyjs.track);1486 $pyjs.track.module='ArgsTest';1487 $pyjs.track.lineno=140;1488 $pyjs.track.lineno=141;1489 values = (typeof foo4 == "undefined"?$m.foo4:foo4)($constant_int_9, $constant_int_8, $constant_int_7, $constant_int_2, $constant_int_3, $constant_int_4);1490 $pyjs.track.lineno=142;1491 self['assertEquals']((typeof ($73=values).__array != 'undefined'?1492 ((typeof $73.__array[$74=$constant_int_0]) != 'undefined'?$73.__array[$74]:1493 $73.__getitem__($74)):1494 $73.__getitem__($constant_int_0)), $constant_int_9);1495 $pyjs.track.lineno=143;1496 self['assertEquals']((typeof ($75=values).__array != 'undefined'?1497 ((typeof $75.__array[$76=$constant_int_1]) != 'undefined'?$75.__array[$76]:1498 $75.__getitem__($76)):1499 $75.__getitem__($constant_int_1)), $constant_int_8);1500 $pyjs.track.lineno=144;1501 self['assertEquals']((typeof ($77=values).__array != 'undefined'?1502 ((typeof $77.__array[$78=$constant_int_2]) != 'undefined'?$77.__array[$78]:1503 $77.__getitem__($78)):1504 $77.__getitem__($constant_int_2)), $constant_int_7);1505 $pyjs.track.lineno=145;1506 self['assertEquals']((typeof ($81=(typeof ($79=values).__array != 'undefined'?1507 ((typeof $79.__array[$80=$constant_int_3]) != 'undefined'?$79.__array[$80]:1508 $79.__getitem__($80)):1509 $79.__getitem__($constant_int_3))).__array != 'undefined'?1510 ((typeof $81.__array[$82=$constant_int_0]) != 'undefined'?$81.__array[$82]:1511 $81.__getitem__($82)):1512 $81.__getitem__($constant_int_0)), $constant_int_2);1513 $pyjs.track.lineno=146;1514 self['assertEquals']((typeof ($85=(typeof ($83=values).__array != 'undefined'?1515 ((typeof $83.__array[$84=$constant_int_3]) != 'undefined'?$83.__array[$84]:1516 $83.__getitem__($84)):1517 $83.__getitem__($constant_int_3))).__array != 'undefined'?1518 ((typeof $85.__array[$86=$constant_int_1]) != 'undefined'?$85.__array[$86]:1519 $85.__getitem__($86)):1520 $85.__getitem__($constant_int_1)), $constant_int_3);1521 $pyjs.track.lineno=147;1522 self['assertEquals']((typeof ($89=(typeof ($87=values).__array != 'undefined'?1523 ((typeof $87.__array[$88=$constant_int_3]) != 'undefined'?$87.__array[$88]:1524 $87.__getitem__($88)):1525 $87.__getitem__($constant_int_3))).__array != 'undefined'?1526 ((typeof $89.__array[$90=$constant_int_2]) != 'undefined'?$89.__array[$90]:1527 $89.__getitem__($90)):1528 $89.__getitem__($constant_int_2)), $constant_int_4);1529 $pyjs.track.lineno=149;1530 values = (typeof foo4 == "undefined"?$m.foo4:foo4)($constant_int_9, $constant_int_8, $constant_int_7, $constant_int_3, $constant_int_2, $constant_int_1);1531 $pyjs.track.lineno=150;1532 self['assertEquals']((typeof ($91=values).__array != 'undefined'?1533 ((typeof $91.__array[$92=$constant_int_0]) != 'undefined'?$91.__array[$92]:1534 $91.__getitem__($92)):1535 $91.__getitem__($constant_int_0)), $constant_int_9);1536 $pyjs.track.lineno=151;1537 self['assertEquals']((typeof ($93=values).__array != 'undefined'?1538 ((typeof $93.__array[$94=$constant_int_1]) != 'undefined'?$93.__array[$94]:1539 $93.__getitem__($94)):1540 $93.__getitem__($constant_int_1)), $constant_int_8);1541 $pyjs.track.lineno=152;1542 self['assertEquals']((typeof ($95=values).__array != 'undefined'?1543 ((typeof $95.__array[$96=$constant_int_2]) != 'undefined'?$95.__array[$96]:1544 $95.__getitem__($96)):1545 $95.__getitem__($constant_int_2)), $constant_int_7);1546 $pyjs.track.lineno=153;1547 self['assertEquals']((typeof ($99=(typeof ($97=values).__array != 'undefined'?1548 ((typeof $97.__array[$98=$constant_int_3]) != 'undefined'?$97.__array[$98]:1549 $97.__getitem__($98)):1550 $97.__getitem__($constant_int_3))).__array != 'undefined'?1551 ((typeof $99.__array[$100=$constant_int_0]) != 'undefined'?$99.__array[$100]:1552 $99.__getitem__($100)):1553 $99.__getitem__($constant_int_0)), $constant_int_3);1554 $pyjs.track.lineno=154;1555 self['assertEquals']((typeof ($103=(typeof ($101=values).__array != 'undefined'?1556 ((typeof $101.__array[$102=$constant_int_3]) != 'undefined'?$101.__array[$102]:1557 $101.__getitem__($102)):1558 $101.__getitem__($constant_int_3))).__array != 'undefined'?1559 ((typeof $103.__array[$104=$constant_int_1]) != 'undefined'?$103.__array[$104]:1560 $103.__getitem__($104)):1561 $103.__getitem__($constant_int_1)), $constant_int_2);1562 $pyjs.track.lineno=155;1563 self['assertEquals']((typeof ($107=(typeof ($105=values).__array != 'undefined'?1564 ((typeof $105.__array[$106=$constant_int_3]) != 'undefined'?$105.__array[$106]:1565 $105.__getitem__($106)):1566 $105.__getitem__($constant_int_3))).__array != 'undefined'?1567 ((typeof $107.__array[$108=$constant_int_2]) != 'undefined'?$107.__array[$108]:1568 $107.__getitem__($108)):1569 $107.__getitem__($constant_int_2)), $constant_int_1);1570 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);1571 return null;1572 }1573 , 1, [null,null,['self']]);1574 $cls_definition['testVarargsCall'] = $method;1575 $pyjs.track.lineno=157;1576 $method = $pyjs__bind_method2('testKwargsCall', function() {1577 if (this.__is_instance__ === true) {1578 var self = this;1579 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);1580 } else {1581 var self = arguments[0];1582 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);1583 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);1584 }1585 if ($pyjs.options.arg_instance_type) {1586 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {1587 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {1588 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);1589 }1590 }1591 }1592 var $116,$117,$114,$115,$112,$113,$110,$111,$109,$118,$119,values,$122,$121,$120;1593 $pyjs.track={module:'ArgsTest', lineno:157};$pyjs.trackstack.push($pyjs.track);1594 $pyjs.track.module='ArgsTest';1595 $pyjs.track.lineno=157;1596 $pyjs.track.lineno=158;1597 values = $pyjs_kwargs_call(null, (typeof foo5 == "undefined"?$m.foo5:foo5), null, null, [{x:$constant_int_5, y:$constant_int_7}, $constant_int_9, $constant_int_8, $constant_int_7]);1598 $pyjs.track.lineno=159;1599 self['assertEquals']((typeof ($109=values).__array != 'undefined'?1600 ((typeof $109.__array[$110=$constant_int_0]) != 'undefined'?$109.__array[$110]:1601 $109.__getitem__($110)):1602 $109.__getitem__($constant_int_0)), $constant_int_9);1603 $pyjs.track.lineno=160;1604 self['assertEquals']((typeof ($111=values).__array != 'undefined'?1605 ((typeof $111.__array[$112=$constant_int_1]) != 'undefined'?$111.__array[$112]:1606 $111.__getitem__($112)):1607 $111.__getitem__($constant_int_1)), $constant_int_8);1608 $pyjs.track.lineno=161;1609 self['assertEquals']((typeof ($113=values).__array != 'undefined'?1610 ((typeof $113.__array[$114=$constant_int_2]) != 'undefined'?$113.__array[$114]:1611 $113.__getitem__($114)):1612 $113.__getitem__($constant_int_2)), $constant_int_7);1613 $pyjs.track.lineno=162;1614 self['assertEquals']((typeof ($117=(typeof ($115=values).__array != 'undefined'?1615 ((typeof $115.__array[$116=$constant_int_3]) != 'undefined'?$115.__array[$116]:1616 $115.__getitem__($116)):1617 $115.__getitem__($constant_int_3))).__array != 'undefined'?1618 ((typeof $117.__array[$118='x']) != 'undefined'?$117.__array[$118]:1619 $117.__getitem__($118)):1620 $117.__getitem__('x')), $constant_int_5);1621 $pyjs.track.lineno=163;1622 self['assertEquals']((typeof ($121=(typeof ($119=values).__array != 'undefined'?1623 ((typeof $119.__array[$120=$constant_int_3]) != 'undefined'?$119.__array[$120]:1624 $119.__getitem__($120)):1625 $119.__getitem__($constant_int_3))).__array != 'undefined'?1626 ((typeof $121.__array[$122='y']) != 'undefined'?$121.__array[$122]:1627 $121.__getitem__($122)):1628 $121.__getitem__('y')), $constant_int_7);1629 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);1630 return null;1631 }1632 , 1, [null,null,['self']]);1633 $cls_definition['testKwargsCall'] = $method;1634 $pyjs.track.lineno=165;1635 $method = $pyjs__bind_method2('testComboCall', function() {1636 if (this.__is_instance__ === true) {1637 var self = this;1638 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);1639 } else {1640 var self = arguments[0];1641 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);1642 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);1643 }1644 if ($pyjs.options.arg_instance_type) {1645 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {1646 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {1647 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);1648 }1649 }1650 }1651 var $138,$139,$130,$131,$132,$133,$134,$135,$136,$137,$145,$127,$126,$143,$124,$129,$128,$148,$123,$144,$147,$146,$141,$140,$125,$142,values;1652 $pyjs.track={module:'ArgsTest', lineno:165};$pyjs.trackstack.push($pyjs.track);1653 $pyjs.track.module='ArgsTest';1654 $pyjs.track.lineno=165;1655 $pyjs.track.lineno=166;1656 values = $pyjs_kwargs_call(null, (typeof foo6 == "undefined"?$m.foo6:foo6), null, null, [{x:$constant_int_4, y:$constant_int_5}, $constant_int_9, $constant_int_8, $constant_int_7, $constant_int_1, $constant_int_2, $constant_int_3]);1657 $pyjs.track.lineno=167;1658 self['assertEquals']((typeof ($123=values).__array != 'undefined'?1659 ((typeof $123.__array[$124=$constant_int_0]) != 'undefined'?$123.__array[$124]:1660 $123.__getitem__($124)):1661 $123.__getitem__($constant_int_0)), $constant_int_9);1662 $pyjs.track.lineno=168;1663 self['assertEquals']((typeof ($125=values).__array != 'undefined'?1664 ((typeof $125.__array[$126=$constant_int_1]) != 'undefined'?$125.__array[$126]:1665 $125.__getitem__($126)):1666 $125.__getitem__($constant_int_1)), $constant_int_8);1667 $pyjs.track.lineno=169;1668 self['assertEquals']((typeof ($127=values).__array != 'undefined'?1669 ((typeof $127.__array[$128=$constant_int_2]) != 'undefined'?$127.__array[$128]:1670 $127.__getitem__($128)):1671 $127.__getitem__($constant_int_2)), $constant_int_7);1672 $pyjs.track.lineno=170;1673 self['assertEquals']((typeof ($131=(typeof ($129=values).__array != 'undefined'?1674 ((typeof $129.__array[$130=$constant_int_3]) != 'undefined'?$129.__array[$130]:1675 $129.__getitem__($130)):1676 $129.__getitem__($constant_int_3))).__array != 'undefined'?1677 ((typeof $131.__array[$132=$constant_int_0]) != 'undefined'?$131.__array[$132]:1678 $131.__getitem__($132)):1679 $131.__getitem__($constant_int_0)), $constant_int_1);1680 $pyjs.track.lineno=171;1681 self['assertEquals']((typeof ($135=(typeof ($133=values).__array != 'undefined'?1682 ((typeof $133.__array[$134=$constant_int_3]) != 'undefined'?$133.__array[$134]:1683 $133.__getitem__($134)):1684 $133.__getitem__($constant_int_3))).__array != 'undefined'?1685 ((typeof $135.__array[$136=$constant_int_1]) != 'undefined'?$135.__array[$136]:1686 $135.__getitem__($136)):1687 $135.__getitem__($constant_int_1)), $constant_int_2);1688 $pyjs.track.lineno=172;1689 self['assertEquals']((typeof ($139=(typeof ($137=values).__array != 'undefined'?1690 ((typeof $137.__array[$138=$constant_int_3]) != 'undefined'?$137.__array[$138]:1691 $137.__getitem__($138)):1692 $137.__getitem__($constant_int_3))).__array != 'undefined'?1693 ((typeof $139.__array[$140=$constant_int_2]) != 'undefined'?$139.__array[$140]:1694 $139.__getitem__($140)):1695 $139.__getitem__($constant_int_2)), $constant_int_3);1696 $pyjs.track.lineno=173;1697 self['assertEquals']((typeof ($143=(typeof ($141=values).__array != 'undefined'?1698 ((typeof $141.__array[$142=$constant_int_4]) != 'undefined'?$141.__array[$142]:1699 $141.__getitem__($142)):1700 $141.__getitem__($constant_int_4))).__array != 'undefined'?1701 ((typeof $143.__array[$144='x']) != 'undefined'?$143.__array[$144]:1702 $143.__getitem__($144)):1703 $143.__getitem__('x')), $constant_int_4);1704 $pyjs.track.lineno=174;1705 self['assertEquals']((typeof ($147=(typeof ($145=values).__array != 'undefined'?1706 ((typeof $145.__array[$146=$constant_int_4]) != 'undefined'?$145.__array[$146]:1707 $145.__getitem__($146)):1708 $145.__getitem__($constant_int_4))).__array != 'undefined'?1709 ((typeof $147.__array[$148='y']) != 'undefined'?$147.__array[$148]:1710 $147.__getitem__($148)):1711 $147.__getitem__('y')), $constant_int_5);1712 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);1713 return null;1714 }1715 , 1, [null,null,['self']]);1716 $cls_definition['testComboCall'] = $method;1717 $pyjs.track.lineno=176;1718 $method = $pyjs__bind_method2('testEdgeCall', function() {1719 if (this.__is_instance__ === true) {1720 var self = this;1721 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);1722 } else {1723 var self = arguments[0];1724 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);1725 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);1726 }1727 if ($pyjs.options.arg_instance_type) {1728 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {1729 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {1730 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);1731 }1732 }1733 }1734 var $152,$153,$150,$151,$156,$157,$154,$155,$158,$159,$167,$166,$165,$164,$163,$162,$161,$160,$168,vaules,values,$149;1735 $pyjs.track={module:'ArgsTest', lineno:176};$pyjs.trackstack.push($pyjs.track);1736 $pyjs.track.module='ArgsTest';1737 $pyjs.track.lineno=176;1738 $pyjs.track.lineno=177;1739 values = $pyjs_kwargs_call(null, (typeof foo7 == "undefined"?$m.foo7:foo7), null, null, [{b:$constant_int_2}, $constant_int_1, $constant_int_2, $constant_int_3]);1740 $pyjs.track.lineno=178;1741 self['assertEqual']((typeof ($149=values).__array != 'undefined'?1742 ((typeof $149.__array[$150=$constant_int_0]) != 'undefined'?$149.__array[$150]:1743 $149.__getitem__($150)):1744 $149.__getitem__($constant_int_0)), $constant_int_1);1745 $pyjs.track.lineno=179;1746 self['assertEqual']((typeof ($151=values).__array != 'undefined'?1747 ((typeof $151.__array[$152=$constant_int_1]) != 'undefined'?$151.__array[$152]:1748 $151.__getitem__($152)):1749 $151.__getitem__($constant_int_1)), $p['tuple']([$constant_int_2, $constant_int_3]));1750 $pyjs.track.lineno=180;1751 self['assertEqual']((typeof ($153=values).__array != 'undefined'?1752 ((typeof $153.__array[$154=$constant_int_2]) != 'undefined'?$153.__array[$154]:1753 $153.__getitem__($154)):1754 $153.__getitem__($constant_int_2)), $p['dict']([['b', $constant_int_2]]));1755 $pyjs.track.lineno=182;1756 values = (typeof foo7 == "undefined"?$m.foo7:foo7)($constant_int_1, $constant_int_2, $constant_int_3, $p['dict']([['b', $constant_int_2]]));1757 $pyjs.track.lineno=183;1758 self['assertEqual']((typeof ($155=values).__array != 'undefined'?1759 ((typeof $155.__array[$156=$constant_int_0]) != 'undefined'?$155.__array[$156]:1760 $155.__getitem__($156)):1761 $155.__getitem__($constant_int_0)), $constant_int_1);1762 $pyjs.track.lineno=184;1763 self['assertEqual']((typeof ($157=values).__array != 'undefined'?1764 ((typeof $157.__array[$158=$constant_int_1]) != 'undefined'?$157.__array[$158]:1765 $157.__getitem__($158)):1766 $157.__getitem__($constant_int_1)), $p['tuple']([$constant_int_2, $constant_int_3, $p['dict']([['b', $constant_int_2]])]));1767 $pyjs.track.lineno=185;1768 self['assertEqual']((typeof ($159=values).__array != 'undefined'?1769 ((typeof $159.__array[$160=$constant_int_2]) != 'undefined'?$159.__array[$160]:1770 $159.__getitem__($160)):1771 $159.__getitem__($constant_int_2)), $p['dict']([]));1772 $pyjs.track.lineno=187;1773 vaules = $pyjs_kwargs_call(null, (typeof foo8 == "undefined"?$m.foo8:foo8), null, null, [{b:$constant_int_2}, $constant_int_1]);1774 $pyjs.track.lineno=188;1775 self['assertEqual']((typeof ($161=vaules).__array != 'undefined'?1776 ((typeof $161.__array[$162=$constant_int_0]) != 'undefined'?$161.__array[$162]:1777 $161.__getitem__($162)):1778 $161.__getitem__($constant_int_0)), $constant_int_1);1779 $pyjs.track.lineno=189;1780 self['assertEqual']((typeof ($163=vaules).__array != 'undefined'?1781 ((typeof $163.__array[$164=$constant_int_1]) != 'undefined'?$163.__array[$164]:1782 $163.__getitem__($164)):1783 $163.__getitem__($constant_int_1)), $p['dict']([['b', $constant_int_2]]));1784 $pyjs.track.lineno=191;1785 vaules = (typeof foo8 == "undefined"?$m.foo8:foo8)($p['dict']([['b', $constant_int_2]]));1786 $pyjs.track.lineno=192;1787 self['assertEqual']((typeof ($165=vaules).__array != 'undefined'?1788 ((typeof $165.__array[$166=$constant_int_0]) != 'undefined'?$165.__array[$166]:1789 $165.__getitem__($166)):1790 $165.__getitem__($constant_int_0)), $p['dict']([['b', $constant_int_2]]));1791 $pyjs.track.lineno=193;1792 self['assertEqual']((typeof ($167=vaules).__array != 'undefined'?1793 ((typeof $167.__array[$168=$constant_int_1]) != 'undefined'?$167.__array[$168]:1794 $167.__getitem__($168)):1795 $167.__getitem__($constant_int_1)), $p['dict']([]));1796 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);1797 return null;1798 }1799 , 1, [null,null,['self']]);1800 $cls_definition['testEdgeCall'] = $method;1801 $pyjs.track.lineno=195;1802 $method = $pyjs__bind_method2('testSimpleCtorCall', function() {1803 if (this.__is_instance__ === true) {1804 var self = this;1805 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);1806 } else {1807 var self = arguments[0];1808 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);1809 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);1810 }1811 if ($pyjs.options.arg_instance_type) {1812 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {1813 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {1814 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);1815 }1816 }1817 }1818 var $180,$174,$175,$176,$177,$170,$171,$172,$173,values,$178,$179,$169;1819 $pyjs.track={module:'ArgsTest', lineno:195};$pyjs.trackstack.push($pyjs.track);1820 $pyjs.track.module='ArgsTest';1821 $pyjs.track.lineno=195;1822 $pyjs.track.lineno=196;1823 values = $p['getattr']((typeof ArgsTestClass_foo == "undefined"?$m.ArgsTestClass_foo:ArgsTestClass_foo)($constant_int_1, $constant_int_2, $constant_int_3), 'x');1824 $pyjs.track.lineno=197;1825 self['assertEquals']((typeof ($169=values).__array != 'undefined'?1826 ((typeof $169.__array[$170=$constant_int_0]) != 'undefined'?$169.__array[$170]:1827 $169.__getitem__($170)):1828 $169.__getitem__($constant_int_0)), $constant_int_1);1829 $pyjs.track.lineno=198;1830 self['assertEquals']((typeof ($171=values).__array != 'undefined'?1831 ((typeof $171.__array[$172=$constant_int_1]) != 'undefined'?$171.__array[$172]:1832 $171.__getitem__($172)):1833 $171.__getitem__($constant_int_1)), $constant_int_2);1834 $pyjs.track.lineno=199;1835 self['assertEquals']((typeof ($173=values).__array != 'undefined'?1836 ((typeof $173.__array[$174=$constant_int_2]) != 'undefined'?$173.__array[$174]:1837 $173.__getitem__($174)):1838 $173.__getitem__($constant_int_2)), $constant_int_3);1839 $pyjs.track.lineno=201;1840 values = $p['getattr']((typeof ArgsTestClass_foo2 == "undefined"?$m.ArgsTestClass_foo2:ArgsTestClass_foo2)($constant_int_1, $constant_int_2, $constant_int_3), 'x');1841 $pyjs.track.lineno=202;1842 self['assertEquals']((typeof ($175=values).__array != 'undefined'?1843 ((typeof $175.__array[$176=$constant_int_0]) != 'undefined'?$175.__array[$176]:1844 $175.__getitem__($176)):1845 $175.__getitem__($constant_int_0)), $constant_int_1);1846 $pyjs.track.lineno=203;1847 self['assertEquals']((typeof ($177=values).__array != 'undefined'?1848 ((typeof $177.__array[$178=$constant_int_1]) != 'undefined'?$177.__array[$178]:1849 $177.__getitem__($178)):1850 $177.__getitem__($constant_int_1)), $constant_int_2);1851 $pyjs.track.lineno=204;1852 self['assertEquals']((typeof ($179=values).__array != 'undefined'?1853 ((typeof $179.__array[$180=$constant_int_2]) != 'undefined'?$179.__array[$180]:1854 $179.__getitem__($180)):1855 $179.__getitem__($constant_int_2)), $constant_int_3);1856 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);1857 return null;1858 }1859 , 1, [null,null,['self']]);1860 $cls_definition['testSimpleCtorCall'] = $method;1861 $pyjs.track.lineno=206;1862 $method = $pyjs__bind_method2('testKeywordCtorCall', function() {1863 if (this.__is_instance__ === true) {1864 var self = this;1865 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);1866 } else {1867 var self = arguments[0];1868 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);1869 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);1870 }1871 if ($pyjs.options.arg_instance_type) {1872 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {1873 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {1874 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);1875 }1876 }1877 }1878 var $189,$188,$181,$183,$182,$185,$184,$187,$186,$202,$203,$200,$201,$204,values,$198,$199,$196,$197,$194,$195,$192,$193,$190,$191;1879 $pyjs.track={module:'ArgsTest', lineno:206};$pyjs.trackstack.push($pyjs.track);1880 $pyjs.track.module='ArgsTest';1881 $pyjs.track.lineno=206;1882 $pyjs.track.lineno=207;1883 values = $p['getattr']($pyjs_kwargs_call(null, (typeof ArgsTestClass_foo2 == "undefined"?$m.ArgsTestClass_foo2:ArgsTestClass_foo2), null, null, [{c:$constant_int_3, b:$constant_int_2, a:$constant_int_1}]), 'x');1884 $pyjs.track.lineno=208;1885 self['assertEquals']((typeof ($181=values).__array != 'undefined'?1886 ((typeof $181.__array[$182=$constant_int_0]) != 'undefined'?$181.__array[$182]:1887 $181.__getitem__($182)):1888 $181.__getitem__($constant_int_0)), $constant_int_1);1889 $pyjs.track.lineno=209;1890 self['assertEquals']((typeof ($183=values).__array != 'undefined'?1891 ((typeof $183.__array[$184=$constant_int_1]) != 'undefined'?$183.__array[$184]:1892 $183.__getitem__($184)):1893 $183.__getitem__($constant_int_1)), $constant_int_2);1894 $pyjs.track.lineno=210;1895 self['assertEquals']((typeof ($185=values).__array != 'undefined'?1896 ((typeof $185.__array[$186=$constant_int_2]) != 'undefined'?$185.__array[$186]:1897 $185.__getitem__($186)):1898 $185.__getitem__($constant_int_2)), $constant_int_3);1899 $pyjs.track.lineno=212;1900 values = $p['getattr']($pyjs_kwargs_call(null, (typeof ArgsTestClass_foo2 == "undefined"?$m.ArgsTestClass_foo2:ArgsTestClass_foo2), null, null, [{b:$constant_int_2, a:$constant_int_1, c:$constant_int_3}]), 'x');1901 $pyjs.track.lineno=213;1902 self['assertEquals']((typeof ($187=values).__array != 'undefined'?1903 ((typeof $187.__array[$188=$constant_int_0]) != 'undefined'?$187.__array[$188]:1904 $187.__getitem__($188)):1905 $187.__getitem__($constant_int_0)), $constant_int_1);1906 $pyjs.track.lineno=214;1907 self['assertEquals']((typeof ($189=values).__array != 'undefined'?1908 ((typeof $189.__array[$190=$constant_int_1]) != 'undefined'?$189.__array[$190]:1909 $189.__getitem__($190)):1910 $189.__getitem__($constant_int_1)), $constant_int_2);1911 $pyjs.track.lineno=215;1912 self['assertEquals']((typeof ($191=values).__array != 'undefined'?1913 ((typeof $191.__array[$192=$constant_int_2]) != 'undefined'?$191.__array[$192]:1914 $191.__getitem__($192)):1915 $191.__getitem__($constant_int_2)), $constant_int_3);1916 $pyjs.track.lineno=217;1917 values = $p['getattr']((typeof ArgsTestClass_foo2 == "undefined"?$m.ArgsTestClass_foo2:ArgsTestClass_foo2)(), 'x');1918 $pyjs.track.lineno=218;1919 self['assertEquals']((typeof ($193=values).__array != 'undefined'?1920 ((typeof $193.__array[$194=$constant_int_0]) != 'undefined'?$193.__array[$194]:1921 $193.__getitem__($194)):1922 $193.__getitem__($constant_int_0)), null);1923 $pyjs.track.lineno=219;1924 self['assertEquals']((typeof ($195=values).__array != 'undefined'?1925 ((typeof $195.__array[$196=$constant_int_1]) != 'undefined'?$195.__array[$196]:1926 $195.__getitem__($196)):1927 $195.__getitem__($constant_int_1)), null);1928 $pyjs.track.lineno=220;1929 self['assertEquals']((typeof ($197=values).__array != 'undefined'?1930 ((typeof $197.__array[$198=$constant_int_2]) != 'undefined'?$197.__array[$198]:1931 $197.__getitem__($198)):1932 $197.__getitem__($constant_int_2)), null);1933 $pyjs.track.lineno=222;1934 values = $p['getattr']($pyjs_kwargs_call(null, (typeof ArgsTestClass_foo2 == "undefined"?$m.ArgsTestClass_foo2:ArgsTestClass_foo2), null, null, [{c:true}]), 'x');1935 $pyjs.track.lineno=223;1936 self['assertEquals']((typeof ($199=values).__array != 'undefined'?1937 ((typeof $199.__array[$200=$constant_int_0]) != 'undefined'?$199.__array[$200]:1938 $199.__getitem__($200)):1939 $199.__getitem__($constant_int_0)), null);1940 $pyjs.track.lineno=224;1941 self['assertEquals']((typeof ($201=values).__array != 'undefined'?1942 ((typeof $201.__array[$202=$constant_int_1]) != 'undefined'?$201.__array[$202]:1943 $201.__getitem__($202)):1944 $201.__getitem__($constant_int_1)), null);1945 $pyjs.track.lineno=225;1946 self['assertEquals']((typeof ($203=values).__array != 'undefined'?1947 ((typeof $203.__array[$204=$constant_int_2]) != 'undefined'?$203.__array[$204]:1948 $203.__getitem__($204)):1949 $203.__getitem__($constant_int_2)), true);1950 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);1951 return null;1952 }1953 , 1, [null,null,['self']]);1954 $cls_definition['testKeywordCtorCall'] = $method;1955 $pyjs.track.lineno=228;1956 $method = $pyjs__bind_method2('testDefaultValuesCtorCall', function() {1957 if (this.__is_instance__ === true) {1958 var self = this;1959 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);1960 } else {1961 var self = arguments[0];1962 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);1963 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);1964 }1965 if ($pyjs.options.arg_instance_type) {1966 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {1967 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {1968 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);1969 }1970 }1971 }1972 var $208,$209,$220,$221,$206,$207,$222,$205,$215,$214,$217,$216,values,$210,$213,$212,$211,$219,$218;1973 $pyjs.track={module:'ArgsTest', lineno:228};$pyjs.trackstack.push($pyjs.track);1974 $pyjs.track.module='ArgsTest';1975 $pyjs.track.lineno=228;1976 $pyjs.track.lineno=229;1977 values = $p['getattr']($pyjs_kwargs_call(null, (typeof ArgsTestClass_foo3 == "undefined"?$m.ArgsTestClass_foo3:ArgsTestClass_foo3), null, null, [{b:$constant_int_7}]), 'x');1978 $pyjs.track.lineno=230;1979 self['assertEquals']((typeof ($205=values).__array != 'undefined'?1980 ((typeof $205.__array[$206=$constant_int_0]) != 'undefined'?$205.__array[$206]:1981 $205.__getitem__($206)):1982 $205.__getitem__($constant_int_0)), $constant_int_1);1983 $pyjs.track.lineno=231;1984 self['assertEquals']((typeof ($207=values).__array != 'undefined'?1985 ((typeof $207.__array[$208=$constant_int_1]) != 'undefined'?$207.__array[$208]:1986 $207.__getitem__($208)):1987 $207.__getitem__($constant_int_1)), $constant_int_7);1988 $pyjs.track.lineno=232;1989 self['assertEquals']((typeof ($209=values).__array != 'undefined'?1990 ((typeof $209.__array[$210=$constant_int_2]) != 'undefined'?$209.__array[$210]:1991 $209.__getitem__($210)):1992 $209.__getitem__($constant_int_2)), $constant_int_3);1993 $pyjs.track.lineno=234;1994 values = $p['getattr']($pyjs_kwargs_call(null, (typeof ArgsTestClass_foo3 == "undefined"?$m.ArgsTestClass_foo3:ArgsTestClass_foo3), null, null, [{a:$constant_int_9}]), 'x');1995 $pyjs.track.lineno=235;1996 self['assertEquals']((typeof ($211=values).__array != 'undefined'?1997 ((typeof $211.__array[$212=$constant_int_0]) != 'undefined'?$211.__array[$212]:1998 $211.__getitem__($212)):1999 $211.__getitem__($constant_int_0)), $constant_int_9);2000 $pyjs.track.lineno=236;2001 self['assertEquals']((typeof ($213=values).__array != 'undefined'?2002 ((typeof $213.__array[$214=$constant_int_1]) != 'undefined'?$213.__array[$214]:2003 $213.__getitem__($214)):2004 $213.__getitem__($constant_int_1)), $constant_int_2);2005 $pyjs.track.lineno=237;2006 self['assertEquals']((typeof ($215=values).__array != 'undefined'?2007 ((typeof $215.__array[$216=$constant_int_2]) != 'undefined'?$215.__array[$216]:2008 $215.__getitem__($216)):2009 $215.__getitem__($constant_int_2)), $constant_int_3);2010 $pyjs.track.lineno=239;2011 values = $p['getattr']((typeof ArgsTestClass_foo3 == "undefined"?$m.ArgsTestClass_foo3:ArgsTestClass_foo3)(), 'x');2012 $pyjs.track.lineno=240;2013 self['assertEquals']((typeof ($217=values).__array != 'undefined'?2014 ((typeof $217.__array[$218=$constant_int_0]) != 'undefined'?$217.__array[$218]:2015 $217.__getitem__($218)):2016 $217.__getitem__($constant_int_0)), $constant_int_1);2017 $pyjs.track.lineno=241;2018 self['assertEquals']((typeof ($219=values).__array != 'undefined'?2019 ((typeof $219.__array[$220=$constant_int_1]) != 'undefined'?$219.__array[$220]:2020 $219.__getitem__($220)):2021 $219.__getitem__($constant_int_1)), $constant_int_2);2022 $pyjs.track.lineno=242;2023 self['assertEquals']((typeof ($221=values).__array != 'undefined'?2024 ((typeof $221.__array[$222=$constant_int_2]) != 'undefined'?$221.__array[$222]:2025 $221.__getitem__($222)):2026 $221.__getitem__($constant_int_2)), $constant_int_3);2027 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);2028 return null;2029 }2030 , 1, [null,null,['self']]);2031 $cls_definition['testDefaultValuesCtorCall'] = $method;2032 $pyjs.track.lineno=244;2033 $method = $pyjs__bind_method2('testVarargsCtorCall', function() {2034 if (this.__is_instance__ === true) {2035 var self = this;2036 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);2037 } else {2038 var self = arguments[0];2039 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);2040 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);2041 }2042 if ($pyjs.options.arg_instance_type) {2043 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {2044 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {2045 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);2046 }2047 }2048 }2049 var $239,$238,$237,$236,$235,$234,$233,$232,$231,$230,$248,$249,$246,$247,$244,$245,$242,$243,$240,$241,$228,$229,$224,$225,$226,$227,$223,$258,values,$251,$250,$253,$252,$255,$254,$257,$256;2050 $pyjs.track={module:'ArgsTest', lineno:244};$pyjs.trackstack.push($pyjs.track);2051 $pyjs.track.module='ArgsTest';2052 $pyjs.track.lineno=244;2053 $pyjs.track.lineno=245;2054 values = $p['getattr']((typeof ArgsTestClass_foo4 == "undefined"?$m.ArgsTestClass_foo4:ArgsTestClass_foo4)($constant_int_9, $constant_int_8, $constant_int_7, $constant_int_2, $constant_int_3, $constant_int_4), 'x');2055 $pyjs.track.lineno=246;2056 self['assertEquals']((typeof ($223=values).__array != 'undefined'?2057 ((typeof $223.__array[$224=$constant_int_0]) != 'undefined'?$223.__array[$224]:2058 $223.__getitem__($224)):2059 $223.__getitem__($constant_int_0)), $constant_int_9);2060 $pyjs.track.lineno=247;2061 self['assertEquals']((typeof ($225=values).__array != 'undefined'?2062 ((typeof $225.__array[$226=$constant_int_1]) != 'undefined'?$225.__array[$226]:2063 $225.__getitem__($226)):2064 $225.__getitem__($constant_int_1)), $constant_int_8);2065 $pyjs.track.lineno=248;2066 self['assertEquals']((typeof ($227=values).__array != 'undefined'?2067 ((typeof $227.__array[$228=$constant_int_2]) != 'undefined'?$227.__array[$228]:2068 $227.__getitem__($228)):2069 $227.__getitem__($constant_int_2)), $constant_int_7);2070 $pyjs.track.lineno=249;2071 self['assertEquals']((typeof ($231=(typeof ($229=values).__array != 'undefined'?2072 ((typeof $229.__array[$230=$constant_int_3]) != 'undefined'?$229.__array[$230]:2073 $229.__getitem__($230)):2074 $229.__getitem__($constant_int_3))).__array != 'undefined'?2075 ((typeof $231.__array[$232=$constant_int_0]) != 'undefined'?$231.__array[$232]:2076 $231.__getitem__($232)):2077 $231.__getitem__($constant_int_0)), $constant_int_2);2078 $pyjs.track.lineno=250;2079 self['assertEquals']((typeof ($235=(typeof ($233=values).__array != 'undefined'?2080 ((typeof $233.__array[$234=$constant_int_3]) != 'undefined'?$233.__array[$234]:2081 $233.__getitem__($234)):2082 $233.__getitem__($constant_int_3))).__array != 'undefined'?2083 ((typeof $235.__array[$236=$constant_int_1]) != 'undefined'?$235.__array[$236]:2084 $235.__getitem__($236)):2085 $235.__getitem__($constant_int_1)), $constant_int_3);2086 $pyjs.track.lineno=251;2087 self['assertEquals']((typeof ($239=(typeof ($237=values).__array != 'undefined'?2088 ((typeof $237.__array[$238=$constant_int_3]) != 'undefined'?$237.__array[$238]:2089 $237.__getitem__($238)):2090 $237.__getitem__($constant_int_3))).__array != 'undefined'?2091 ((typeof $239.__array[$240=$constant_int_2]) != 'undefined'?$239.__array[$240]:2092 $239.__getitem__($240)):2093 $239.__getitem__($constant_int_2)), $constant_int_4);2094 $pyjs.track.lineno=253;2095 values = $p['getattr']((typeof ArgsTestClass_foo4 == "undefined"?$m.ArgsTestClass_foo4:ArgsTestClass_foo4)($constant_int_9, $constant_int_8, $constant_int_7, $constant_int_3, $constant_int_2, $constant_int_1), 'x');2096 $pyjs.track.lineno=254;2097 self['assertEquals']((typeof ($241=values).__array != 'undefined'?2098 ((typeof $241.__array[$242=$constant_int_0]) != 'undefined'?$241.__array[$242]:2099 $241.__getitem__($242)):2100 $241.__getitem__($constant_int_0)), $constant_int_9);2101 $pyjs.track.lineno=255;2102 self['assertEquals']((typeof ($243=values).__array != 'undefined'?2103 ((typeof $243.__array[$244=$constant_int_1]) != 'undefined'?$243.__array[$244]:2104 $243.__getitem__($244)):2105 $243.__getitem__($constant_int_1)), $constant_int_8);2106 $pyjs.track.lineno=256;2107 self['assertEquals']((typeof ($245=values).__array != 'undefined'?2108 ((typeof $245.__array[$246=$constant_int_2]) != 'undefined'?$245.__array[$246]:2109 $245.__getitem__($246)):2110 $245.__getitem__($constant_int_2)), $constant_int_7);2111 $pyjs.track.lineno=257;2112 self['assertEquals']((typeof ($249=(typeof ($247=values).__array != 'undefined'?2113 ((typeof $247.__array[$248=$constant_int_3]) != 'undefined'?$247.__array[$248]:2114 $247.__getitem__($248)):2115 $247.__getitem__($constant_int_3))).__array != 'undefined'?2116 ((typeof $249.__array[$250=$constant_int_0]) != 'undefined'?$249.__array[$250]:2117 $249.__getitem__($250)):2118 $249.__getitem__($constant_int_0)), $constant_int_3);2119 $pyjs.track.lineno=258;2120 self['assertEquals']((typeof ($253=(typeof ($251=values).__array != 'undefined'?2121 ((typeof $251.__array[$252=$constant_int_3]) != 'undefined'?$251.__array[$252]:2122 $251.__getitem__($252)):2123 $251.__getitem__($constant_int_3))).__array != 'undefined'?2124 ((typeof $253.__array[$254=$constant_int_1]) != 'undefined'?$253.__array[$254]:2125 $253.__getitem__($254)):2126 $253.__getitem__($constant_int_1)), $constant_int_2);2127 $pyjs.track.lineno=259;2128 self['assertEquals']((typeof ($257=(typeof ($255=values).__array != 'undefined'?2129 ((typeof $255.__array[$256=$constant_int_3]) != 'undefined'?$255.__array[$256]:2130 $255.__getitem__($256)):2131 $255.__getitem__($constant_int_3))).__array != 'undefined'?2132 ((typeof $257.__array[$258=$constant_int_2]) != 'undefined'?$257.__array[$258]:2133 $257.__getitem__($258)):2134 $257.__getitem__($constant_int_2)), $constant_int_1);2135 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);2136 return null;2137 }2138 , 1, [null,null,['self']]);2139 $cls_definition['testVarargsCtorCall'] = $method;2140 $pyjs.track.lineno=261;2141 $method = $pyjs__bind_method2('testKwargsCtorCall', function() {2142 if (this.__is_instance__ === true) {2143 var self = this;2144 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);2145 } else {2146 var self = arguments[0];2147 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);2148 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);2149 }2150 if ($pyjs.options.arg_instance_type) {2151 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {2152 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {2153 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);2154 }2155 }2156 }2157 var $260,$272,$269,$259,$261,$262,$263,values,$265,$266,$267,$268,$264,$270,$271;2158 $pyjs.track={module:'ArgsTest', lineno:261};$pyjs.trackstack.push($pyjs.track);2159 $pyjs.track.module='ArgsTest';2160 $pyjs.track.lineno=261;2161 $pyjs.track.lineno=262;2162 values = $p['getattr']($pyjs_kwargs_call(null, (typeof ArgsTestClass_foo5 == "undefined"?$m.ArgsTestClass_foo5:ArgsTestClass_foo5), null, null, [{x:$constant_int_5, y:$constant_int_7}, $constant_int_9, $constant_int_8, $constant_int_7]), 'x');2163 $pyjs.track.lineno=263;2164 self['assertEquals']((typeof ($259=values).__array != 'undefined'?2165 ((typeof $259.__array[$260=$constant_int_0]) != 'undefined'?$259.__array[$260]:2166 $259.__getitem__($260)):2167 $259.__getitem__($constant_int_0)), $constant_int_9);2168 $pyjs.track.lineno=264;2169 self['assertEquals']((typeof ($261=values).__array != 'undefined'?2170 ((typeof $261.__array[$262=$constant_int_1]) != 'undefined'?$261.__array[$262]:2171 $261.__getitem__($262)):2172 $261.__getitem__($constant_int_1)), $constant_int_8);2173 $pyjs.track.lineno=265;2174 self['assertEquals']((typeof ($263=values).__array != 'undefined'?2175 ((typeof $263.__array[$264=$constant_int_2]) != 'undefined'?$263.__array[$264]:2176 $263.__getitem__($264)):2177 $263.__getitem__($constant_int_2)), $constant_int_7);2178 $pyjs.track.lineno=266;2179 self['assertEquals']((typeof ($267=(typeof ($265=values).__array != 'undefined'?2180 ((typeof $265.__array[$266=$constant_int_3]) != 'undefined'?$265.__array[$266]:2181 $265.__getitem__($266)):2182 $265.__getitem__($constant_int_3))).__array != 'undefined'?2183 ((typeof $267.__array[$268='x']) != 'undefined'?$267.__array[$268]:2184 $267.__getitem__($268)):2185 $267.__getitem__('x')), $constant_int_5);2186 $pyjs.track.lineno=267;2187 self['assertEquals']((typeof ($271=(typeof ($269=values).__array != 'undefined'?2188 ((typeof $269.__array[$270=$constant_int_3]) != 'undefined'?$269.__array[$270]:2189 $269.__getitem__($270)):2190 $269.__getitem__($constant_int_3))).__array != 'undefined'?2191 ((typeof $271.__array[$272='y']) != 'undefined'?$271.__array[$272]:2192 $271.__getitem__($272)):2193 $271.__getitem__('y')), $constant_int_7);2194 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);2195 return null;2196 }2197 , 1, [null,null,['self']]);2198 $cls_definition['testKwargsCtorCall'] = $method;2199 $pyjs.track.lineno=269;2200 $method = $pyjs__bind_method2('testComboCtorCall', function() {2201 if (this.__is_instance__ === true) {2202 var self = this;2203 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);2204 } else {2205 var self = arguments[0];2206 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);2207 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);2208 }2209 if ($pyjs.options.arg_instance_type) {2210 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {2211 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {2212 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);2213 }2214 }2215 }2216 var $298,$295,$294,$297,$296,$291,$290,$293,$292,$277,$282,$283,$280,$281,$286,$287,$284,$285,$288,$289,$273,values,$276,$275,$274,$279,$278;2217 $pyjs.track={module:'ArgsTest', lineno:269};$pyjs.trackstack.push($pyjs.track);2218 $pyjs.track.module='ArgsTest';2219 $pyjs.track.lineno=269;2220 $pyjs.track.lineno=270;2221 values = $p['getattr']($pyjs_kwargs_call(null, (typeof ArgsTestClass_foo6 == "undefined"?$m.ArgsTestClass_foo6:ArgsTestClass_foo6), null, null, [{x:$constant_int_4, y:$constant_int_5}, $constant_int_9, $constant_int_8, $constant_int_7, $constant_int_1, $constant_int_2, $constant_int_3]), 'x');2222 $pyjs.track.lineno=271;2223 self['assertEquals']((typeof ($273=values).__array != 'undefined'?2224 ((typeof $273.__array[$274=$constant_int_0]) != 'undefined'?$273.__array[$274]:2225 $273.__getitem__($274)):2226 $273.__getitem__($constant_int_0)), $constant_int_9);2227 $pyjs.track.lineno=272;2228 self['assertEquals']((typeof ($275=values).__array != 'undefined'?2229 ((typeof $275.__array[$276=$constant_int_1]) != 'undefined'?$275.__array[$276]:2230 $275.__getitem__($276)):2231 $275.__getitem__($constant_int_1)), $constant_int_8);2232 $pyjs.track.lineno=273;2233 self['assertEquals']((typeof ($277=values).__array != 'undefined'?2234 ((typeof $277.__array[$278=$constant_int_2]) != 'undefined'?$277.__array[$278]:2235 $277.__getitem__($278)):2236 $277.__getitem__($constant_int_2)), $constant_int_7);2237 $pyjs.track.lineno=274;2238 self['assertEquals']((typeof ($281=(typeof ($279=values).__array != 'undefined'?2239 ((typeof $279.__array[$280=$constant_int_3]) != 'undefined'?$279.__array[$280]:2240 $279.__getitem__($280)):2241 $279.__getitem__($constant_int_3))).__array != 'undefined'?2242 ((typeof $281.__array[$282=$constant_int_0]) != 'undefined'?$281.__array[$282]:2243 $281.__getitem__($282)):2244 $281.__getitem__($constant_int_0)), $constant_int_1);2245 $pyjs.track.lineno=275;2246 self['assertEquals']((typeof ($285=(typeof ($283=values).__array != 'undefined'?2247 ((typeof $283.__array[$284=$constant_int_3]) != 'undefined'?$283.__array[$284]:2248 $283.__getitem__($284)):2249 $283.__getitem__($constant_int_3))).__array != 'undefined'?2250 ((typeof $285.__array[$286=$constant_int_1]) != 'undefined'?$285.__array[$286]:2251 $285.__getitem__($286)):2252 $285.__getitem__($constant_int_1)), $constant_int_2);2253 $pyjs.track.lineno=276;2254 self['assertEquals']((typeof ($289=(typeof ($287=values).__array != 'undefined'?2255 ((typeof $287.__array[$288=$constant_int_3]) != 'undefined'?$287.__array[$288]:2256 $287.__getitem__($288)):2257 $287.__getitem__($constant_int_3))).__array != 'undefined'?2258 ((typeof $289.__array[$290=$constant_int_2]) != 'undefined'?$289.__array[$290]:2259 $289.__getitem__($290)):2260 $289.__getitem__($constant_int_2)), $constant_int_3);2261 $pyjs.track.lineno=277;2262 self['assertEquals']((typeof ($293=(typeof ($291=values).__array != 'undefined'?2263 ((typeof $291.__array[$292=$constant_int_4]) != 'undefined'?$291.__array[$292]:2264 $291.__getitem__($292)):2265 $291.__getitem__($constant_int_4))).__array != 'undefined'?2266 ((typeof $293.__array[$294='x']) != 'undefined'?$293.__array[$294]:2267 $293.__getitem__($294)):2268 $293.__getitem__('x')), $constant_int_4);2269 $pyjs.track.lineno=278;2270 self['assertEquals']((typeof ($297=(typeof ($295=values).__array != 'undefined'?2271 ((typeof $295.__array[$296=$constant_int_4]) != 'undefined'?$295.__array[$296]:2272 $295.__getitem__($296)):2273 $295.__getitem__($constant_int_4))).__array != 'undefined'?2274 ((typeof $297.__array[$298='y']) != 'undefined'?$297.__array[$298]:2275 $297.__getitem__($298)):2276 $297.__getitem__('y')), $constant_int_5);2277 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);2278 return null;2279 }2280 , 1, [null,null,['self']]);2281 $cls_definition['testComboCtorCall'] = $method;2282 $pyjs.track.lineno=280;2283 $method = $pyjs__bind_method2('testSimpleMethodCall', function() {2284 if (this.__is_instance__ === true) {2285 var self = this;2286 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);2287 } else {2288 var self = arguments[0];2289 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);2290 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);2291 }2292 if ($pyjs.options.arg_instance_type) {2293 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {2294 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {2295 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);2296 }2297 }2298 }2299 var $310,$307,$303,$302,$301,$300,$299,$306,$305,$304,values,$309,$308;2300 $pyjs.track={module:'ArgsTest', lineno:280};$pyjs.trackstack.push($pyjs.track);2301 $pyjs.track.module='ArgsTest';2302 $pyjs.track.lineno=280;2303 $pyjs.track.lineno=281;2304 values = $m.ArgsTestClass()['foo']($constant_int_1, $constant_int_2, $constant_int_3);2305 $pyjs.track.lineno=282;2306 self['assertEquals']((typeof ($299=values).__array != 'undefined'?2307 ((typeof $299.__array[$300=$constant_int_0]) != 'undefined'?$299.__array[$300]:2308 $299.__getitem__($300)):2309 $299.__getitem__($constant_int_0)), $constant_int_1);2310 $pyjs.track.lineno=283;2311 self['assertEquals']((typeof ($301=values).__array != 'undefined'?2312 ((typeof $301.__array[$302=$constant_int_1]) != 'undefined'?$301.__array[$302]:2313 $301.__getitem__($302)):2314 $301.__getitem__($constant_int_1)), $constant_int_2);2315 $pyjs.track.lineno=284;2316 self['assertEquals']((typeof ($303=values).__array != 'undefined'?2317 ((typeof $303.__array[$304=$constant_int_2]) != 'undefined'?$303.__array[$304]:2318 $303.__getitem__($304)):2319 $303.__getitem__($constant_int_2)), $constant_int_3);2320 $pyjs.track.lineno=286;2321 values = $m.ArgsTestClass()['foo2']($constant_int_1, $constant_int_2, $constant_int_3);2322 $pyjs.track.lineno=287;2323 self['assertEquals']((typeof ($305=values).__array != 'undefined'?2324 ((typeof $305.__array[$306=$constant_int_0]) != 'undefined'?$305.__array[$306]:2325 $305.__getitem__($306)):2326 $305.__getitem__($constant_int_0)), $constant_int_1);2327 $pyjs.track.lineno=288;2328 self['assertEquals']((typeof ($307=values).__array != 'undefined'?2329 ((typeof $307.__array[$308=$constant_int_1]) != 'undefined'?$307.__array[$308]:2330 $307.__getitem__($308)):2331 $307.__getitem__($constant_int_1)), $constant_int_2);2332 $pyjs.track.lineno=289;2333 self['assertEquals']((typeof ($309=values).__array != 'undefined'?2334 ((typeof $309.__array[$310=$constant_int_2]) != 'undefined'?$309.__array[$310]:2335 $309.__getitem__($310)):2336 $309.__getitem__($constant_int_2)), $constant_int_3);2337 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);2338 return null;2339 }2340 , 1, [null,null,['self']]);2341 $cls_definition['testSimpleMethodCall'] = $method;2342 $pyjs.track.lineno=291;2343 $method = $pyjs__bind_method2('testKeywordMethodCall', function() {2344 if (this.__is_instance__ === true) {2345 var self = this;2346 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);2347 } else {2348 var self = arguments[0];2349 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);2350 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);2351 }2352 if ($pyjs.options.arg_instance_type) {2353 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {2354 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {2355 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);2356 }2357 }2358 }2359 var $329,$328,$314,$321,$320,$323,$322,$325,$324,$327,$326,$311,$312,$313,values,$315,$316,$317,$318,$319,$334,$332,$333,$330,$331;2360 $pyjs.track={module:'ArgsTest', lineno:291};$pyjs.trackstack.push($pyjs.track);2361 $pyjs.track.module='ArgsTest';2362 $pyjs.track.lineno=291;2363 $pyjs.track.lineno=292;2364 values = $pyjs_kwargs_call($m.ArgsTestClass(), 'foo2', null, null, [{c:$constant_int_3, b:$constant_int_2, a:$constant_int_1}]);2365 $pyjs.track.lineno=293;2366 self['assertEquals']((typeof ($311=values).__array != 'undefined'?2367 ((typeof $311.__array[$312=$constant_int_0]) != 'undefined'?$311.__array[$312]:2368 $311.__getitem__($312)):2369 $311.__getitem__($constant_int_0)), $constant_int_1);2370 $pyjs.track.lineno=294;2371 self['assertEquals']((typeof ($313=values).__array != 'undefined'?2372 ((typeof $313.__array[$314=$constant_int_1]) != 'undefined'?$313.__array[$314]:2373 $313.__getitem__($314)):2374 $313.__getitem__($constant_int_1)), $constant_int_2);2375 $pyjs.track.lineno=295;2376 self['assertEquals']((typeof ($315=values).__array != 'undefined'?2377 ((typeof $315.__array[$316=$constant_int_2]) != 'undefined'?$315.__array[$316]:2378 $315.__getitem__($316)):2379 $315.__getitem__($constant_int_2)), $constant_int_3);2380 $pyjs.track.lineno=297;2381 values = $pyjs_kwargs_call($m.ArgsTestClass(), 'foo2', null, null, [{b:$constant_int_2, a:$constant_int_1, c:$constant_int_3}]);2382 $pyjs.track.lineno=298;2383 self['assertEquals']((typeof ($317=values).__array != 'undefined'?2384 ((typeof $317.__array[$318=$constant_int_0]) != 'undefined'?$317.__array[$318]:2385 $317.__getitem__($318)):2386 $317.__getitem__($constant_int_0)), $constant_int_1);2387 $pyjs.track.lineno=299;2388 self['assertEquals']((typeof ($319=values).__array != 'undefined'?2389 ((typeof $319.__array[$320=$constant_int_1]) != 'undefined'?$319.__array[$320]:2390 $319.__getitem__($320)):2391 $319.__getitem__($constant_int_1)), $constant_int_2);2392 $pyjs.track.lineno=300;2393 self['assertEquals']((typeof ($321=values).__array != 'undefined'?2394 ((typeof $321.__array[$322=$constant_int_2]) != 'undefined'?$321.__array[$322]:2395 $321.__getitem__($322)):2396 $321.__getitem__($constant_int_2)), $constant_int_3);2397 $pyjs.track.lineno=302;2398 values = $m.ArgsTestClass()['foo2']();2399 $pyjs.track.lineno=303;2400 self['assertEquals']((typeof ($323=values).__array != 'undefined'?2401 ((typeof $323.__array[$324=$constant_int_0]) != 'undefined'?$323.__array[$324]:2402 $323.__getitem__($324)):2403 $323.__getitem__($constant_int_0)), null);2404 $pyjs.track.lineno=304;2405 self['assertEquals']((typeof ($325=values).__array != 'undefined'?2406 ((typeof $325.__array[$326=$constant_int_1]) != 'undefined'?$325.__array[$326]:2407 $325.__getitem__($326)):2408 $325.__getitem__($constant_int_1)), null);2409 $pyjs.track.lineno=305;2410 self['assertEquals']((typeof ($327=values).__array != 'undefined'?2411 ((typeof $327.__array[$328=$constant_int_2]) != 'undefined'?$327.__array[$328]:2412 $327.__getitem__($328)):2413 $327.__getitem__($constant_int_2)), null);2414 $pyjs.track.lineno=307;2415 values = $pyjs_kwargs_call($m.ArgsTestClass(), 'foo2', null, null, [{c:true}]);2416 $pyjs.track.lineno=308;2417 self['assertEquals']((typeof ($329=values).__array != 'undefined'?2418 ((typeof $329.__array[$330=$constant_int_0]) != 'undefined'?$329.__array[$330]:2419 $329.__getitem__($330)):2420 $329.__getitem__($constant_int_0)), null);2421 $pyjs.track.lineno=309;2422 self['assertEquals']((typeof ($331=values).__array != 'undefined'?2423 ((typeof $331.__array[$332=$constant_int_1]) != 'undefined'?$331.__array[$332]:2424 $331.__getitem__($332)):2425 $331.__getitem__($constant_int_1)), null);2426 $pyjs.track.lineno=310;2427 self['assertEquals']((typeof ($333=values).__array != 'undefined'?2428 ((typeof $333.__array[$334=$constant_int_2]) != 'undefined'?$333.__array[$334]:2429 $333.__getitem__($334)):2430 $333.__getitem__($constant_int_2)), true);2431 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);2432 return null;2433 }2434 , 1, [null,null,['self']]);2435 $cls_definition['testKeywordMethodCall'] = $method;2436 $pyjs.track.lineno=313;2437 $method = $pyjs__bind_method2('testDefaultValuesMethodCall', function() {2438 if (this.__is_instance__ === true) {2439 var self = this;2440 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);2441 } else {2442 var self = arguments[0];2443 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);2444 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);2445 }2446 if ($pyjs.options.arg_instance_type) {2447 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {2448 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {2449 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);2450 }2451 }2452 }2453 var $349,$348,$347,$346,$344,$343,$342,$341,$340,$351,values,$352,$338,$339,$336,$337,$350,$335,$345;2454 $pyjs.track={module:'ArgsTest', lineno:313};$pyjs.trackstack.push($pyjs.track);2455 $pyjs.track.module='ArgsTest';2456 $pyjs.track.lineno=313;2457 $pyjs.track.lineno=314;2458 values = $pyjs_kwargs_call($m.ArgsTestClass(), 'foo3', null, null, [{b:$constant_int_7}]);2459 $pyjs.track.lineno=315;2460 self['assertEquals']((typeof ($335=values).__array != 'undefined'?2461 ((typeof $335.__array[$336=$constant_int_0]) != 'undefined'?$335.__array[$336]:2462 $335.__getitem__($336)):2463 $335.__getitem__($constant_int_0)), $constant_int_1);2464 $pyjs.track.lineno=316;2465 self['assertEquals']((typeof ($337=values).__array != 'undefined'?2466 ((typeof $337.__array[$338=$constant_int_1]) != 'undefined'?$337.__array[$338]:2467 $337.__getitem__($338)):2468 $337.__getitem__($constant_int_1)), $constant_int_7);2469 $pyjs.track.lineno=317;2470 self['assertEquals']((typeof ($339=values).__array != 'undefined'?2471 ((typeof $339.__array[$340=$constant_int_2]) != 'undefined'?$339.__array[$340]:2472 $339.__getitem__($340)):2473 $339.__getitem__($constant_int_2)), $constant_int_3);2474 $pyjs.track.lineno=319;2475 values = $pyjs_kwargs_call($m.ArgsTestClass(), 'foo3', null, null, [{a:$constant_int_9}]);2476 $pyjs.track.lineno=320;2477 self['assertEquals']((typeof ($341=values).__array != 'undefined'?2478 ((typeof $341.__array[$342=$constant_int_0]) != 'undefined'?$341.__array[$342]:2479 $341.__getitem__($342)):2480 $341.__getitem__($constant_int_0)), $constant_int_9);2481 $pyjs.track.lineno=321;2482 self['assertEquals']((typeof ($343=values).__array != 'undefined'?2483 ((typeof $343.__array[$344=$constant_int_1]) != 'undefined'?$343.__array[$344]:2484 $343.__getitem__($344)):2485 $343.__getitem__($constant_int_1)), $constant_int_2);2486 $pyjs.track.lineno=322;2487 self['assertEquals']((typeof ($345=values).__array != 'undefined'?2488 ((typeof $345.__array[$346=$constant_int_2]) != 'undefined'?$345.__array[$346]:2489 $345.__getitem__($346)):2490 $345.__getitem__($constant_int_2)), $constant_int_3);2491 $pyjs.track.lineno=324;2492 values = $m.ArgsTestClass()['foo3']();2493 $pyjs.track.lineno=325;2494 self['assertEquals']((typeof ($347=values).__array != 'undefined'?2495 ((typeof $347.__array[$348=$constant_int_0]) != 'undefined'?$347.__array[$348]:2496 $347.__getitem__($348)):2497 $347.__getitem__($constant_int_0)), $constant_int_1);2498 $pyjs.track.lineno=326;2499 self['assertEquals']((typeof ($349=values).__array != 'undefined'?2500 ((typeof $349.__array[$350=$constant_int_1]) != 'undefined'?$349.__array[$350]:2501 $349.__getitem__($350)):2502 $349.__getitem__($constant_int_1)), $constant_int_2);2503 $pyjs.track.lineno=327;2504 self['assertEquals']((typeof ($351=values).__array != 'undefined'?2505 ((typeof $351.__array[$352=$constant_int_2]) != 'undefined'?$351.__array[$352]:2506 $351.__getitem__($352)):2507 $351.__getitem__($constant_int_2)), $constant_int_3);2508 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);2509 return null;2510 }2511 , 1, [null,null,['self']]);2512 $cls_definition['testDefaultValuesMethodCall'] = $method;2513 $pyjs.track.lineno=329;2514 $method = $pyjs__bind_method2('testVarargsMethodCall', function() {2515 if (this.__is_instance__ === true) {2516 var self = this;2517 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);2518 } else {2519 var self = arguments[0];2520 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);2521 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);2522 }2523 if ($pyjs.options.arg_instance_type) {2524 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {2525 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {2526 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);2527 }2528 }2529 }2530 var $358,$359,$354,$355,$357,$353,$364,values,$360,$363,$362,$361,$356;2531 $pyjs.track={module:'ArgsTest', lineno:329};$pyjs.trackstack.push($pyjs.track);2532 $pyjs.track.module='ArgsTest';2533 $pyjs.track.lineno=329;2534 $pyjs.track.lineno=330;2535 values = $m.ArgsTestClass()['foo4']($constant_int_1, $constant_int_2, $constant_int_3);2536 $pyjs.track.lineno=331;2537 self['assertEquals']((typeof ($353=values).__array != 'undefined'?2538 ((typeof $353.__array[$354=$constant_int_0]) != 'undefined'?$353.__array[$354]:2539 $353.__getitem__($354)):2540 $353.__getitem__($constant_int_0)), $constant_int_1);2541 $pyjs.track.lineno=332;2542 self['assertEquals']((typeof ($355=values).__array != 'undefined'?2543 ((typeof $355.__array[$356=$constant_int_1]) != 'undefined'?$355.__array[$356]:2544 $355.__getitem__($356)):2545 $355.__getitem__($constant_int_1)), $constant_int_2);2546 $pyjs.track.lineno=333;2547 self['assertEquals']((typeof ($357=values).__array != 'undefined'?2548 ((typeof $357.__array[$358=$constant_int_2]) != 'undefined'?$357.__array[$358]:2549 $357.__getitem__($358)):2550 $357.__getitem__($constant_int_2)), $constant_int_3);2551 $pyjs.track.lineno=335;2552 values = $m.ArgsTestClass()['foo4']($constant_int_3, $constant_int_2, $constant_int_1);2553 $pyjs.track.lineno=336;2554 self['assertEquals']((typeof ($359=values).__array != 'undefined'?2555 ((typeof $359.__array[$360=$constant_int_0]) != 'undefined'?$359.__array[$360]:2556 $359.__getitem__($360)):2557 $359.__getitem__($constant_int_0)), $constant_int_3);2558 $pyjs.track.lineno=337;2559 self['assertEquals']((typeof ($361=values).__array != 'undefined'?2560 ((typeof $361.__array[$362=$constant_int_1]) != 'undefined'?$361.__array[$362]:2561 $361.__getitem__($362)):2562 $361.__getitem__($constant_int_1)), $constant_int_2);2563 $pyjs.track.lineno=338;2564 self['assertEquals']((typeof ($363=values).__array != 'undefined'?2565 ((typeof $363.__array[$364=$constant_int_2]) != 'undefined'?$363.__array[$364]:2566 $363.__getitem__($364)):2567 $363.__getitem__($constant_int_2)), $constant_int_1);2568 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);2569 return null;2570 }2571 , 1, [null,null,['self']]);2572 $cls_definition['testVarargsMethodCall'] = $method;2573 $pyjs.track.lineno=340;2574 $method = $pyjs__bind_method2('testKwargsMethodCall', function() {2575 if (this.__is_instance__ === true) {2576 var self = this;2577 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);2578 } else {2579 var self = arguments[0];2580 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);2581 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);2582 }2583 if ($pyjs.options.arg_instance_type) {2584 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {2585 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {2586 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);2587 }2588 }2589 }2590 var $365,$367,$366,values,$368;2591 $pyjs.track={module:'ArgsTest', lineno:340};$pyjs.trackstack.push($pyjs.track);2592 $pyjs.track.module='ArgsTest';2593 $pyjs.track.lineno=340;2594 $pyjs.track.lineno=341;2595 values = $pyjs_kwargs_call($m.ArgsTestClass(), 'foo5', null, null, [{x:$constant_int_5, y:$constant_int_7}]);2596 $pyjs.track.lineno=342;2597 self['assertEquals']((typeof ($365=values).__array != 'undefined'?2598 ((typeof $365.__array[$366='x']) != 'undefined'?$365.__array[$366]:2599 $365.__getitem__($366)):2600 $365.__getitem__('x')), $constant_int_5);2601 $pyjs.track.lineno=343;2602 self['assertEquals']((typeof ($367=values).__array != 'undefined'?2603 ((typeof $367.__array[$368='y']) != 'undefined'?$367.__array[$368]:2604 $367.__getitem__($368)):2605 $367.__getitem__('y')), $constant_int_7);2606 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);2607 return null;2608 }2609 , 1, [null,null,['self']]);2610 $cls_definition['testKwargsMethodCall'] = $method;2611 $pyjs.track.lineno=345;2612 $method = $pyjs__bind_method2('testComboMethodCall', function() {2613 if (this.__is_instance__ === true) {2614 var self = this;2615 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);2616 } else {2617 var self = arguments[0];2618 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);2619 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);2620 }2621 if ($pyjs.options.arg_instance_type) {2622 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {2623 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {2624 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);2625 }2626 }2627 }2628 var $378,$379,$372,$373,$370,$371,$376,$377,$374,$375,$369,$388,$383,$382,$381,$380,$387,$386,$385,$384,values;2629 $pyjs.track={module:'ArgsTest', lineno:345};$pyjs.trackstack.push($pyjs.track);2630 $pyjs.track.module='ArgsTest';2631 $pyjs.track.lineno=345;2632 $pyjs.track.lineno=346;2633 values = $pyjs_kwargs_call($m.ArgsTestClass(), 'foo6', null, null, [{x:$constant_int_4, y:$constant_int_5}, $constant_int_1, $constant_int_2, $constant_int_3]);2634 $pyjs.track.lineno=347;2635 self['assertEquals']((typeof ($371=(typeof ($369=values).__array != 'undefined'?2636 ((typeof $369.__array[$370=$constant_int_0]) != 'undefined'?$369.__array[$370]:2637 $369.__getitem__($370)):2638 $369.__getitem__($constant_int_0))).__array != 'undefined'?2639 ((typeof $371.__array[$372=$constant_int_0]) != 'undefined'?$371.__array[$372]:2640 $371.__getitem__($372)):2641 $371.__getitem__($constant_int_0)), $constant_int_1);2642 $pyjs.track.lineno=348;2643 self['assertEquals']((typeof ($375=(typeof ($373=values).__array != 'undefined'?2644 ((typeof $373.__array[$374=$constant_int_0]) != 'undefined'?$373.__array[$374]:2645 $373.__getitem__($374)):2646 $373.__getitem__($constant_int_0))).__array != 'undefined'?2647 ((typeof $375.__array[$376=$constant_int_1]) != 'undefined'?$375.__array[$376]:2648 $375.__getitem__($376)):2649 $375.__getitem__($constant_int_1)), $constant_int_2);2650 $pyjs.track.lineno=349;2651 self['assertEquals']((typeof ($379=(typeof ($377=values).__array != 'undefined'?2652 ((typeof $377.__array[$378=$constant_int_0]) != 'undefined'?$377.__array[$378]:2653 $377.__getitem__($378)):2654 $377.__getitem__($constant_int_0))).__array != 'undefined'?2655 ((typeof $379.__array[$380=$constant_int_2]) != 'undefined'?$379.__array[$380]:2656 $379.__getitem__($380)):2657 $379.__getitem__($constant_int_2)), $constant_int_3);2658 $pyjs.track.lineno=350;2659 self['assertEquals']((typeof ($383=(typeof ($381=values).__array != 'undefined'?2660 ((typeof $381.__array[$382=$constant_int_1]) != 'undefined'?$381.__array[$382]:2661 $381.__getitem__($382)):2662 $381.__getitem__($constant_int_1))).__array != 'undefined'?2663 ((typeof $383.__array[$384='x']) != 'undefined'?$383.__array[$384]:2664 $383.__getitem__($384)):2665 $383.__getitem__('x')), $constant_int_4);2666 $pyjs.track.lineno=351;2667 self['assertEquals']((typeof ($387=(typeof ($385=values).__array != 'undefined'?2668 ((typeof $385.__array[$386=$constant_int_1]) != 'undefined'?$385.__array[$386]:2669 $385.__getitem__($386)):2670 $385.__getitem__($constant_int_1))).__array != 'undefined'?2671 ((typeof $387.__array[$388='y']) != 'undefined'?$387.__array[$388]:2672 $387.__getitem__($388)):2673 $387.__getitem__('y')), $constant_int_5);2674 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);2675 return null;2676 }2677 , 1, [null,null,['self']]);2678 $cls_definition['testComboMethodCall'] = $method;2679 $pyjs.track.lineno=353;2680 $method = $pyjs__bind_method2('testEdgeMethodCall', function() {2681 if (this.__is_instance__ === true) {2682 var self = this;2683 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);2684 } else {2685 var self = arguments[0];2686 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);2687 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);2688 }2689 if ($pyjs.options.arg_instance_type) {2690 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {2691 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {2692 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);2693 }2694 }2695 }2696 var $398,$399,$408,$392,$391,$404,$405,$406,$407,$400,$401,$402,$403,$393,$394,$395,$396,$397,$389,$390,vaules,values;2697 $pyjs.track={module:'ArgsTest', lineno:353};$pyjs.trackstack.push($pyjs.track);2698 $pyjs.track.module='ArgsTest';2699 $pyjs.track.lineno=353;2700 $pyjs.track.lineno=354;2701 values = $pyjs_kwargs_call($m.ArgsTestClass(), 'foo7', null, null, [{b:$constant_int_2}, $constant_int_1, $constant_int_2, $constant_int_3]);2702 $pyjs.track.lineno=355;2703 self['assertEqual']((typeof ($389=values).__array != 'undefined'?2704 ((typeof $389.__array[$390=$constant_int_0]) != 'undefined'?$389.__array[$390]:2705 $389.__getitem__($390)):2706 $389.__getitem__($constant_int_0)), $constant_int_1);2707 $pyjs.track.lineno=356;2708 self['assertEqual']((typeof ($391=values).__array != 'undefined'?2709 ((typeof $391.__array[$392=$constant_int_1]) != 'undefined'?$391.__array[$392]:2710 $391.__getitem__($392)):2711 $391.__getitem__($constant_int_1)), $p['tuple']([$constant_int_2, $constant_int_3]));2712 $pyjs.track.lineno=357;2713 self['assertEqual']((typeof ($393=values).__array != 'undefined'?2714 ((typeof $393.__array[$394=$constant_int_2]) != 'undefined'?$393.__array[$394]:2715 $393.__getitem__($394)):2716 $393.__getitem__($constant_int_2)), $p['dict']([['b', $constant_int_2]]));2717 $pyjs.track.lineno=359;2718 values = $m.ArgsTestClass()['foo7']($constant_int_1, $constant_int_2, $constant_int_3, $p['dict']([['b', $constant_int_2]]));2719 $pyjs.track.lineno=360;2720 self['assertEqual']((typeof ($395=values).__array != 'undefined'?2721 ((typeof $395.__array[$396=$constant_int_0]) != 'undefined'?$395.__array[$396]:2722 $395.__getitem__($396)):2723 $395.__getitem__($constant_int_0)), $constant_int_1);2724 $pyjs.track.lineno=361;2725 self['assertEqual']((typeof ($397=values).__array != 'undefined'?2726 ((typeof $397.__array[$398=$constant_int_1]) != 'undefined'?$397.__array[$398]:2727 $397.__getitem__($398)):2728 $397.__getitem__($constant_int_1)), $p['tuple']([$constant_int_2, $constant_int_3, $p['dict']([['b', $constant_int_2]])]));2729 $pyjs.track.lineno=362;2730 self['assertEqual']((typeof ($399=values).__array != 'undefined'?2731 ((typeof $399.__array[$400=$constant_int_2]) != 'undefined'?$399.__array[$400]:2732 $399.__getitem__($400)):2733 $399.__getitem__($constant_int_2)), $p['dict']([]));2734 $pyjs.track.lineno=364;2735 vaules = $pyjs_kwargs_call($m.ArgsTestClass(), 'foo8', null, null, [{b:$constant_int_2}, $constant_int_1]);2736 $pyjs.track.lineno=365;2737 self['assertEqual']((typeof ($401=vaules).__array != 'undefined'?2738 ((typeof $401.__array[$402=$constant_int_0]) != 'undefined'?$401.__array[$402]:2739 $401.__getitem__($402)):2740 $401.__getitem__($constant_int_0)), $constant_int_1);2741 $pyjs.track.lineno=366;2742 self['assertEqual']((typeof ($403=vaules).__array != 'undefined'?2743 ((typeof $403.__array[$404=$constant_int_1]) != 'undefined'?$403.__array[$404]:2744 $403.__getitem__($404)):2745 $403.__getitem__($constant_int_1)), $p['dict']([['b', $constant_int_2]]));2746 $pyjs.track.lineno=368;2747 vaules = $m.ArgsTestClass()['foo8']($p['dict']([['b', $constant_int_2]]));2748 $pyjs.track.lineno=369;2749 self['assertEqual']((typeof ($405=vaules).__array != 'undefined'?2750 ((typeof $405.__array[$406=$constant_int_0]) != 'undefined'?$405.__array[$406]:2751 $405.__getitem__($406)):2752 $405.__getitem__($constant_int_0)), $p['dict']([['b', $constant_int_2]]));2753 $pyjs.track.lineno=370;2754 self['assertEqual']((typeof ($407=vaules).__array != 'undefined'?2755 ((typeof $407.__array[$408=$constant_int_1]) != 'undefined'?$407.__array[$408]:2756 $407.__getitem__($408)):2757 $407.__getitem__($constant_int_1)), $p['dict']([]));2758 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);2759 return null;2760 }2761 , 1, [null,null,['self']]);2762 $cls_definition['testEdgeMethodCall'] = $method;2763 $pyjs.track.lineno=372;2764 $method = $pyjs__bind_method2('testSimpleStaticMethodCall', function() {2765 if (this.__is_instance__ === true) {2766 var self = this;2767 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);2768 } else {2769 var self = arguments[0];2770 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);2771 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);2772 }2773 if ($pyjs.options.arg_instance_type) {2774 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {2775 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {2776 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);2777 }2778 }2779 }2780 var $420,values,$409,$419,$418,$417,$416,$415,$414,$413,$412,$411,$410;2781 $pyjs.track={module:'ArgsTest', lineno:372};$pyjs.trackstack.push($pyjs.track);2782 $pyjs.track.module='ArgsTest';2783 $pyjs.track.lineno=372;2784 $pyjs.track.lineno=373;2785 values = $m.ArgsTestClass2['foo']($constant_int_1, $constant_int_2, $constant_int_3);2786 $pyjs.track.lineno=374;2787 self['assertEquals']((typeof ($409=values).__array != 'undefined'?2788 ((typeof $409.__array[$410=$constant_int_0]) != 'undefined'?$409.__array[$410]:2789 $409.__getitem__($410)):2790 $409.__getitem__($constant_int_0)), $constant_int_1);2791 $pyjs.track.lineno=375;2792 self['assertEquals']((typeof ($411=values).__array != 'undefined'?2793 ((typeof $411.__array[$412=$constant_int_1]) != 'undefined'?$411.__array[$412]:2794 $411.__getitem__($412)):2795 $411.__getitem__($constant_int_1)), $constant_int_2);2796 $pyjs.track.lineno=376;2797 self['assertEquals']((typeof ($413=values).__array != 'undefined'?2798 ((typeof $413.__array[$414=$constant_int_2]) != 'undefined'?$413.__array[$414]:2799 $413.__getitem__($414)):2800 $413.__getitem__($constant_int_2)), $constant_int_3);2801 $pyjs.track.lineno=378;2802 values = $m.ArgsTestClass2['foo2']($constant_int_1, $constant_int_2, $constant_int_3);2803 $pyjs.track.lineno=379;2804 self['assertEquals']((typeof ($415=values).__array != 'undefined'?2805 ((typeof $415.__array[$416=$constant_int_0]) != 'undefined'?$415.__array[$416]:2806 $415.__getitem__($416)):2807 $415.__getitem__($constant_int_0)), $constant_int_1);2808 $pyjs.track.lineno=380;2809 self['assertEquals']((typeof ($417=values).__array != 'undefined'?2810 ((typeof $417.__array[$418=$constant_int_1]) != 'undefined'?$417.__array[$418]:2811 $417.__getitem__($418)):2812 $417.__getitem__($constant_int_1)), $constant_int_2);2813 $pyjs.track.lineno=381;2814 self['assertEquals']((typeof ($419=values).__array != 'undefined'?2815 ((typeof $419.__array[$420=$constant_int_2]) != 'undefined'?$419.__array[$420]:2816 $419.__getitem__($420)):2817 $419.__getitem__($constant_int_2)), $constant_int_3);2818 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);2819 return null;2820 }2821 , 1, [null,null,['self']]);2822 $cls_definition['testSimpleStaticMethodCall'] = $method;2823 $pyjs.track.lineno=383;2824 $method = $pyjs__bind_method2('testKeywordStaticMethodCall', function() {2825 if (this.__is_instance__ === true) {2826 var self = this;2827 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);2828 } else {2829 var self = arguments[0];2830 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);2831 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);2832 }2833 if ($pyjs.options.arg_instance_type) {2834 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {2835 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {2836 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);2837 }2838 }2839 }2840 var $440,$441,$442,$443,$444,$428,$429,$422,$423,$421,$426,$427,$424,$425,$435,$434,$437,$436,$431,$430,$433,$432,$439,$438,values;2841 $pyjs.track={module:'ArgsTest', lineno:383};$pyjs.trackstack.push($pyjs.track);2842 $pyjs.track.module='ArgsTest';2843 $pyjs.track.lineno=383;2844 $pyjs.track.lineno=384;2845 values = $pyjs_kwargs_call($m.ArgsTestClass2, 'foo2', null, null, [{c:$constant_int_3, b:$constant_int_2, a:$constant_int_1}]);2846 $pyjs.track.lineno=385;2847 self['assertEquals']((typeof ($421=values).__array != 'undefined'?2848 ((typeof $421.__array[$422=$constant_int_0]) != 'undefined'?$421.__array[$422]:2849 $421.__getitem__($422)):2850 $421.__getitem__($constant_int_0)), $constant_int_1);2851 $pyjs.track.lineno=386;2852 self['assertEquals']((typeof ($423=values).__array != 'undefined'?2853 ((typeof $423.__array[$424=$constant_int_1]) != 'undefined'?$423.__array[$424]:2854 $423.__getitem__($424)):2855 $423.__getitem__($constant_int_1)), $constant_int_2);2856 $pyjs.track.lineno=387;2857 self['assertEquals']((typeof ($425=values).__array != 'undefined'?2858 ((typeof $425.__array[$426=$constant_int_2]) != 'undefined'?$425.__array[$426]:2859 $425.__getitem__($426)):2860 $425.__getitem__($constant_int_2)), $constant_int_3);2861 $pyjs.track.lineno=389;2862 values = $pyjs_kwargs_call($m.ArgsTestClass2, 'foo2', null, null, [{b:$constant_int_2, a:$constant_int_1, c:$constant_int_3}]);2863 $pyjs.track.lineno=390;2864 self['assertEquals']((typeof ($427=values).__array != 'undefined'?2865 ((typeof $427.__array[$428=$constant_int_0]) != 'undefined'?$427.__array[$428]:2866 $427.__getitem__($428)):2867 $427.__getitem__($constant_int_0)), $constant_int_1);2868 $pyjs.track.lineno=391;2869 self['assertEquals']((typeof ($429=values).__array != 'undefined'?2870 ((typeof $429.__array[$430=$constant_int_1]) != 'undefined'?$429.__array[$430]:2871 $429.__getitem__($430)):2872 $429.__getitem__($constant_int_1)), $constant_int_2);2873 $pyjs.track.lineno=392;2874 self['assertEquals']((typeof ($431=values).__array != 'undefined'?2875 ((typeof $431.__array[$432=$constant_int_2]) != 'undefined'?$431.__array[$432]:2876 $431.__getitem__($432)):2877 $431.__getitem__($constant_int_2)), $constant_int_3);2878 $pyjs.track.lineno=394;2879 values = $m.ArgsTestClass2['foo2']();2880 $pyjs.track.lineno=395;2881 self['assertEquals']((typeof ($433=values).__array != 'undefined'?2882 ((typeof $433.__array[$434=$constant_int_0]) != 'undefined'?$433.__array[$434]:2883 $433.__getitem__($434)):2884 $433.__getitem__($constant_int_0)), null);2885 $pyjs.track.lineno=396;2886 self['assertEquals']((typeof ($435=values).__array != 'undefined'?2887 ((typeof $435.__array[$436=$constant_int_1]) != 'undefined'?$435.__array[$436]:2888 $435.__getitem__($436)):2889 $435.__getitem__($constant_int_1)), null);2890 $pyjs.track.lineno=397;2891 self['assertEquals']((typeof ($437=values).__array != 'undefined'?2892 ((typeof $437.__array[$438=$constant_int_2]) != 'undefined'?$437.__array[$438]:2893 $437.__getitem__($438)):2894 $437.__getitem__($constant_int_2)), null);2895 $pyjs.track.lineno=399;2896 values = $pyjs_kwargs_call($m.ArgsTestClass2, 'foo2', null, null, [{c:true}]);2897 $pyjs.track.lineno=400;2898 self['assertEquals']((typeof ($439=values).__array != 'undefined'?2899 ((typeof $439.__array[$440=$constant_int_0]) != 'undefined'?$439.__array[$440]:2900 $439.__getitem__($440)):2901 $439.__getitem__($constant_int_0)), null);2902 $pyjs.track.lineno=401;2903 self['assertEquals']((typeof ($441=values).__array != 'undefined'?2904 ((typeof $441.__array[$442=$constant_int_1]) != 'undefined'?$441.__array[$442]:2905 $441.__getitem__($442)):2906 $441.__getitem__($constant_int_1)), null);2907 $pyjs.track.lineno=402;2908 self['assertEquals']((typeof ($443=values).__array != 'undefined'?2909 ((typeof $443.__array[$444=$constant_int_2]) != 'undefined'?$443.__array[$444]:2910 $443.__getitem__($444)):2911 $443.__getitem__($constant_int_2)), true);2912 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);2913 return null;2914 }2915 , 1, [null,null,['self']]);2916 $cls_definition['testKeywordStaticMethodCall'] = $method;2917 $pyjs.track.lineno=404;2918 $method = $pyjs__bind_method2('testDefaultValuesStaticMethodCall', function() {2919 if (this.__is_instance__ === true) {2920 var self = this;2921 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);2922 } else {2923 var self = arguments[0];2924 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);2925 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);2926 }2927 if ($pyjs.options.arg_instance_type) {2928 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {2929 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {2930 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);2931 }2932 }2933 }2934 var $453,$452,$451,$450,$457,$445,$446,$447,$448,$449,$454,$462,$460,$455,values,$461,$459,$458,$456;2935 $pyjs.track={module:'ArgsTest', lineno:404};$pyjs.trackstack.push($pyjs.track);2936 $pyjs.track.module='ArgsTest';2937 $pyjs.track.lineno=404;2938 $pyjs.track.lineno=405;2939 values = $pyjs_kwargs_call($m.ArgsTestClass2, 'foo3', null, null, [{b:$constant_int_7}]);2940 $pyjs.track.lineno=406;2941 self['assertEquals']((typeof ($445=values).__array != 'undefined'?2942 ((typeof $445.__array[$446=$constant_int_0]) != 'undefined'?$445.__array[$446]:2943 $445.__getitem__($446)):2944 $445.__getitem__($constant_int_0)), $constant_int_1);2945 $pyjs.track.lineno=407;2946 self['assertEquals']((typeof ($447=values).__array != 'undefined'?2947 ((typeof $447.__array[$448=$constant_int_1]) != 'undefined'?$447.__array[$448]:2948 $447.__getitem__($448)):2949 $447.__getitem__($constant_int_1)), $constant_int_7);2950 $pyjs.track.lineno=408;2951 self['assertEquals']((typeof ($449=values).__array != 'undefined'?2952 ((typeof $449.__array[$450=$constant_int_2]) != 'undefined'?$449.__array[$450]:2953 $449.__getitem__($450)):2954 $449.__getitem__($constant_int_2)), $constant_int_3);2955 $pyjs.track.lineno=410;2956 values = $pyjs_kwargs_call($m.ArgsTestClass2, 'foo3', null, null, [{a:$constant_int_9}]);2957 $pyjs.track.lineno=411;2958 self['assertEquals']((typeof ($451=values).__array != 'undefined'?2959 ((typeof $451.__array[$452=$constant_int_0]) != 'undefined'?$451.__array[$452]:2960 $451.__getitem__($452)):2961 $451.__getitem__($constant_int_0)), $constant_int_9);2962 $pyjs.track.lineno=412;2963 self['assertEquals']((typeof ($453=values).__array != 'undefined'?2964 ((typeof $453.__array[$454=$constant_int_1]) != 'undefined'?$453.__array[$454]:2965 $453.__getitem__($454)):2966 $453.__getitem__($constant_int_1)), $constant_int_2);2967 $pyjs.track.lineno=413;2968 self['assertEquals']((typeof ($455=values).__array != 'undefined'?2969 ((typeof $455.__array[$456=$constant_int_2]) != 'undefined'?$455.__array[$456]:2970 $455.__getitem__($456)):2971 $455.__getitem__($constant_int_2)), $constant_int_3);2972 $pyjs.track.lineno=415;2973 values = $m.ArgsTestClass2['foo3']();2974 $pyjs.track.lineno=416;2975 self['assertEquals']((typeof ($457=values).__array != 'undefined'?2976 ((typeof $457.__array[$458=$constant_int_0]) != 'undefined'?$457.__array[$458]:2977 $457.__getitem__($458)):2978 $457.__getitem__($constant_int_0)), $constant_int_1);2979 $pyjs.track.lineno=417;2980 self['assertEquals']((typeof ($459=values).__array != 'undefined'?2981 ((typeof $459.__array[$460=$constant_int_1]) != 'undefined'?$459.__array[$460]:2982 $459.__getitem__($460)):2983 $459.__getitem__($constant_int_1)), $constant_int_2);2984 $pyjs.track.lineno=418;2985 self['assertEquals']((typeof ($461=values).__array != 'undefined'?2986 ((typeof $461.__array[$462=$constant_int_2]) != 'undefined'?$461.__array[$462]:2987 $461.__getitem__($462)):2988 $461.__getitem__($constant_int_2)), $constant_int_3);2989 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);2990 return null;2991 }2992 , 1, [null,null,['self']]);2993 $cls_definition['testDefaultValuesStaticMethodCall'] = $method;2994 $pyjs.track.lineno=420;2995 $method = $pyjs__bind_method2('testVarargsStaticMethodCall', function() {2996 if (this.__is_instance__ === true) {2997 var self = this;2998 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);2999 } else {3000 var self = arguments[0];3001 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);3002 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);3003 }3004 if ($pyjs.options.arg_instance_type) {3005 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {3006 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {3007 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);3008 }3009 }3010 }3011 var $472,$473,$468,$469,$466,$467,$465,$463,$474,$471,values,$470,$464;3012 $pyjs.track={module:'ArgsTest', lineno:420};$pyjs.trackstack.push($pyjs.track);3013 $pyjs.track.module='ArgsTest';3014 $pyjs.track.lineno=420;3015 $pyjs.track.lineno=421;3016 values = $m.ArgsTestClass2['foo4']($constant_int_1, $constant_int_2, $constant_int_3);3017 $pyjs.track.lineno=422;3018 self['assertEquals']((typeof ($463=values).__array != 'undefined'?3019 ((typeof $463.__array[$464=$constant_int_0]) != 'undefined'?$463.__array[$464]:3020 $463.__getitem__($464)):3021 $463.__getitem__($constant_int_0)), $constant_int_1);3022 $pyjs.track.lineno=423;3023 self['assertEquals']((typeof ($465=values).__array != 'undefined'?3024 ((typeof $465.__array[$466=$constant_int_1]) != 'undefined'?$465.__array[$466]:3025 $465.__getitem__($466)):3026 $465.__getitem__($constant_int_1)), $constant_int_2);3027 $pyjs.track.lineno=424;3028 self['assertEquals']((typeof ($467=values).__array != 'undefined'?3029 ((typeof $467.__array[$468=$constant_int_2]) != 'undefined'?$467.__array[$468]:3030 $467.__getitem__($468)):3031 $467.__getitem__($constant_int_2)), $constant_int_3);3032 $pyjs.track.lineno=426;3033 values = $m.ArgsTestClass2['foo4']($constant_int_3, $constant_int_2, $constant_int_1);3034 $pyjs.track.lineno=427;3035 self['assertEquals']((typeof ($469=values).__array != 'undefined'?3036 ((typeof $469.__array[$470=$constant_int_0]) != 'undefined'?$469.__array[$470]:3037 $469.__getitem__($470)):3038 $469.__getitem__($constant_int_0)), $constant_int_3);3039 $pyjs.track.lineno=428;3040 self['assertEquals']((typeof ($471=values).__array != 'undefined'?3041 ((typeof $471.__array[$472=$constant_int_1]) != 'undefined'?$471.__array[$472]:3042 $471.__getitem__($472)):3043 $471.__getitem__($constant_int_1)), $constant_int_2);3044 $pyjs.track.lineno=429;3045 self['assertEquals']((typeof ($473=values).__array != 'undefined'?3046 ((typeof $473.__array[$474=$constant_int_2]) != 'undefined'?$473.__array[$474]:3047 $473.__getitem__($474)):3048 $473.__getitem__($constant_int_2)), $constant_int_1);3049 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);3050 return null;3051 }3052 , 1, [null,null,['self']]);3053 $cls_definition['testVarargsStaticMethodCall'] = $method;3054 $pyjs.track.lineno=431;3055 $method = $pyjs__bind_method2('testKwargsStaticMethodCall', function() {3056 if (this.__is_instance__ === true) {3057 var self = this;3058 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);3059 } else {3060 var self = arguments[0];3061 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);3062 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);3063 }3064 if ($pyjs.options.arg_instance_type) {3065 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {3066 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {3067 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);3068 }3069 }3070 }3071 var $478,$475,$477,$476,values;3072 $pyjs.track={module:'ArgsTest', lineno:431};$pyjs.trackstack.push($pyjs.track);3073 $pyjs.track.module='ArgsTest';3074 $pyjs.track.lineno=431;3075 $pyjs.track.lineno=432;3076 values = $pyjs_kwargs_call($m.ArgsTestClass2, 'foo5', null, null, [{x:$constant_int_5, y:$constant_int_7}]);3077 $pyjs.track.lineno=433;3078 self['assertEquals']((typeof ($475=values).__array != 'undefined'?3079 ((typeof $475.__array[$476='x']) != 'undefined'?$475.__array[$476]:3080 $475.__getitem__($476)):3081 $475.__getitem__('x')), $constant_int_5);3082 $pyjs.track.lineno=434;3083 self['assertEquals']((typeof ($477=values).__array != 'undefined'?3084 ((typeof $477.__array[$478='y']) != 'undefined'?$477.__array[$478]:3085 $477.__getitem__($478)):3086 $477.__getitem__('y')), $constant_int_7);3087 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);3088 return null;3089 }3090 , 1, [null,null,['self']]);3091 $cls_definition['testKwargsStaticMethodCall'] = $method;3092 $pyjs.track.lineno=436;3093 $method = $pyjs__bind_method2('testComboStaticMethodCall', function() {3094 if (this.__is_instance__ === true) {3095 var self = this;3096 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);3097 } else {3098 var self = arguments[0];3099 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);3100 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);3101 }3102 if ($pyjs.options.arg_instance_type) {3103 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {3104 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {3105 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);3106 }3107 }3108 }3109 var $484,$485,$486,$487,$480,$481,$482,$483,$488,$489,$479,$497,$496,$495,$494,$493,$492,$491,$490,$498,values;3110 $pyjs.track={module:'ArgsTest', lineno:436};$pyjs.trackstack.push($pyjs.track);3111 $pyjs.track.module='ArgsTest';3112 $pyjs.track.lineno=436;3113 $pyjs.track.lineno=437;3114 values = $pyjs_kwargs_call($m.ArgsTestClass2, 'foo6', null, null, [{x:$constant_int_4, y:$constant_int_5}, $constant_int_1, $constant_int_2, $constant_int_3]);3115 $pyjs.track.lineno=438;3116 self['assertEquals']((typeof ($481=(typeof ($479=values).__array != 'undefined'?3117 ((typeof $479.__array[$480=$constant_int_0]) != 'undefined'?$479.__array[$480]:3118 $479.__getitem__($480)):3119 $479.__getitem__($constant_int_0))).__array != 'undefined'?3120 ((typeof $481.__array[$482=$constant_int_0]) != 'undefined'?$481.__array[$482]:3121 $481.__getitem__($482)):3122 $481.__getitem__($constant_int_0)), $constant_int_1);3123 $pyjs.track.lineno=439;3124 self['assertEquals']((typeof ($485=(typeof ($483=values).__array != 'undefined'?3125 ((typeof $483.__array[$484=$constant_int_0]) != 'undefined'?$483.__array[$484]:3126 $483.__getitem__($484)):3127 $483.__getitem__($constant_int_0))).__array != 'undefined'?3128 ((typeof $485.__array[$486=$constant_int_1]) != 'undefined'?$485.__array[$486]:3129 $485.__getitem__($486)):3130 $485.__getitem__($constant_int_1)), $constant_int_2);3131 $pyjs.track.lineno=440;3132 self['assertEquals']((typeof ($489=(typeof ($487=values).__array != 'undefined'?3133 ((typeof $487.__array[$488=$constant_int_0]) != 'undefined'?$487.__array[$488]:3134 $487.__getitem__($488)):3135 $487.__getitem__($constant_int_0))).__array != 'undefined'?3136 ((typeof $489.__array[$490=$constant_int_2]) != 'undefined'?$489.__array[$490]:3137 $489.__getitem__($490)):3138 $489.__getitem__($constant_int_2)), $constant_int_3);3139 $pyjs.track.lineno=441;3140 self['assertEquals']((typeof ($493=(typeof ($491=values).__array != 'undefined'?3141 ((typeof $491.__array[$492=$constant_int_1]) != 'undefined'?$491.__array[$492]:3142 $491.__getitem__($492)):3143 $491.__getitem__($constant_int_1))).__array != 'undefined'?3144 ((typeof $493.__array[$494='x']) != 'undefined'?$493.__array[$494]:3145 $493.__getitem__($494)):3146 $493.__getitem__('x')), $constant_int_4);3147 $pyjs.track.lineno=442;3148 self['assertEquals']((typeof ($497=(typeof ($495=values).__array != 'undefined'?3149 ((typeof $495.__array[$496=$constant_int_1]) != 'undefined'?$495.__array[$496]:3150 $495.__getitem__($496)):3151 $495.__getitem__($constant_int_1))).__array != 'undefined'?3152 ((typeof $497.__array[$498='y']) != 'undefined'?$497.__array[$498]:3153 $497.__getitem__($498)):3154 $497.__getitem__('y')), $constant_int_5);3155 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);3156 return null;3157 }3158 , 1, [null,null,['self']]);3159 $cls_definition['testComboStaticMethodCall'] = $method;3160 $pyjs.track.lineno=444;3161 $method = $pyjs__bind_method2('testEdgeStaticMethodCall', function() {3162 if (this.__is_instance__ === true) {3163 var self = this;3164 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);3165 } else {3166 var self = arguments[0];3167 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);3168 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);3169 }3170 if ($pyjs.options.arg_instance_type) {3171 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {3172 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {3173 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);3174 }3175 }3176 }3177 var $505,$504,$507,$506,$501,$500,$503,$502,$509,$508,$518,$512,$513,$510,$511,$516,$517,$514,$515,$499,vaules,values;3178 $pyjs.track={module:'ArgsTest', lineno:444};$pyjs.trackstack.push($pyjs.track);3179 $pyjs.track.module='ArgsTest';3180 $pyjs.track.lineno=444;3181 $pyjs.track.lineno=445;3182 values = $pyjs_kwargs_call($m.ArgsTestClass2, 'foo7', null, null, [{b:$constant_int_2}, $constant_int_1, $constant_int_2, $constant_int_3]);3183 $pyjs.track.lineno=446;3184 self['assertEqual']((typeof ($499=values).__array != 'undefined'?3185 ((typeof $499.__array[$500=$constant_int_0]) != 'undefined'?$499.__array[$500]:3186 $499.__getitem__($500)):3187 $499.__getitem__($constant_int_0)), $constant_int_1);3188 $pyjs.track.lineno=447;3189 self['assertEqual']((typeof ($501=values).__array != 'undefined'?3190 ((typeof $501.__array[$502=$constant_int_1]) != 'undefined'?$501.__array[$502]:3191 $501.__getitem__($502)):3192 $501.__getitem__($constant_int_1)), $p['tuple']([$constant_int_2, $constant_int_3]));3193 $pyjs.track.lineno=448;3194 self['assertEqual']((typeof ($503=values).__array != 'undefined'?3195 ((typeof $503.__array[$504=$constant_int_2]) != 'undefined'?$503.__array[$504]:3196 $503.__getitem__($504)):3197 $503.__getitem__($constant_int_2)), $p['dict']([['b', $constant_int_2]]));3198 $pyjs.track.lineno=450;3199 values = $m.ArgsTestClass2['foo7']($constant_int_1, $constant_int_2, $constant_int_3, $p['dict']([['b', $constant_int_2]]));3200 $pyjs.track.lineno=451;3201 self['assertEqual']((typeof ($505=values).__array != 'undefined'?3202 ((typeof $505.__array[$506=$constant_int_0]) != 'undefined'?$505.__array[$506]:3203 $505.__getitem__($506)):3204 $505.__getitem__($constant_int_0)), $constant_int_1);3205 $pyjs.track.lineno=452;3206 self['assertEqual']((typeof ($507=values).__array != 'undefined'?3207 ((typeof $507.__array[$508=$constant_int_1]) != 'undefined'?$507.__array[$508]:3208 $507.__getitem__($508)):3209 $507.__getitem__($constant_int_1)), $p['tuple']([$constant_int_2, $constant_int_3, $p['dict']([['b', $constant_int_2]])]));3210 $pyjs.track.lineno=453;3211 self['assertEqual']((typeof ($509=values).__array != 'undefined'?3212 ((typeof $509.__array[$510=$constant_int_2]) != 'undefined'?$509.__array[$510]:3213 $509.__getitem__($510)):3214 $509.__getitem__($constant_int_2)), $p['dict']([]));3215 $pyjs.track.lineno=455;3216 vaules = $pyjs_kwargs_call($m.ArgsTestClass2, 'foo8', null, null, [{b:$constant_int_2}, $constant_int_1]);3217 $pyjs.track.lineno=456;3218 self['assertEqual']((typeof ($511=vaules).__array != 'undefined'?3219 ((typeof $511.__array[$512=$constant_int_0]) != 'undefined'?$511.__array[$512]:3220 $511.__getitem__($512)):3221 $511.__getitem__($constant_int_0)), $constant_int_1);3222 $pyjs.track.lineno=457;3223 self['assertEqual']((typeof ($513=vaules).__array != 'undefined'?3224 ((typeof $513.__array[$514=$constant_int_1]) != 'undefined'?$513.__array[$514]:3225 $513.__getitem__($514)):3226 $513.__getitem__($constant_int_1)), $p['dict']([['b', $constant_int_2]]));3227 $pyjs.track.lineno=459;3228 vaules = $m.ArgsTestClass2['foo8']($p['dict']([['b', $constant_int_2]]));3229 $pyjs.track.lineno=460;3230 self['assertEqual']((typeof ($515=vaules).__array != 'undefined'?3231 ((typeof $515.__array[$516=$constant_int_0]) != 'undefined'?$515.__array[$516]:3232 $515.__getitem__($516)):3233 $515.__getitem__($constant_int_0)), $p['dict']([['b', $constant_int_2]]));3234 $pyjs.track.lineno=461;3235 self['assertEqual']((typeof ($517=vaules).__array != 'undefined'?3236 ((typeof $517.__array[$518=$constant_int_1]) != 'undefined'?$517.__array[$518]:3237 $517.__getitem__($518)):3238 $517.__getitem__($constant_int_1)), $p['dict']([]));3239 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);3240 return null;3241 }3242 , 1, [null,null,['self']]);3243 $cls_definition['testEdgeStaticMethodCall'] = $method;3244 $pyjs.track.lineno=463;3245 $method = $pyjs__bind_method2('testSimpleClassMethodCall', function() {3246 if (this.__is_instance__ === true) {3247 var self = this;3248 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);3249 } else {3250 var self = arguments[0];3251 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);3252 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);3253 }3254 if ($pyjs.options.arg_instance_type) {3255 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {3256 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {3257 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);3258 }3259 }3260 }3261 var $530,$519,values,$529,$528,$527,$526,$525,$524,$523,$522,$521,$520;3262 $pyjs.track={module:'ArgsTest', lineno:463};$pyjs.trackstack.push($pyjs.track);3263 $pyjs.track.module='ArgsTest';3264 $pyjs.track.lineno=463;3265 $pyjs.track.lineno=464;3266 values = $m.ArgsTestClass3['foo']($constant_int_1, $constant_int_2, $constant_int_3);3267 $pyjs.track.lineno=465;3268 self['assertEquals']((typeof ($519=values).__array != 'undefined'?3269 ((typeof $519.__array[$520=$constant_int_0]) != 'undefined'?$519.__array[$520]:3270 $519.__getitem__($520)):3271 $519.__getitem__($constant_int_0)), $constant_int_1);3272 $pyjs.track.lineno=466;3273 self['assertEquals']((typeof ($521=values).__array != 'undefined'?3274 ((typeof $521.__array[$522=$constant_int_1]) != 'undefined'?$521.__array[$522]:3275 $521.__getitem__($522)):3276 $521.__getitem__($constant_int_1)), $constant_int_2);3277 $pyjs.track.lineno=467;3278 self['assertEquals']((typeof ($523=values).__array != 'undefined'?3279 ((typeof $523.__array[$524=$constant_int_2]) != 'undefined'?$523.__array[$524]:3280 $523.__getitem__($524)):3281 $523.__getitem__($constant_int_2)), $constant_int_3);3282 $pyjs.track.lineno=469;3283 values = $m.ArgsTestClass3['foo2']($constant_int_1, $constant_int_2, $constant_int_3);3284 $pyjs.track.lineno=470;3285 self['assertEquals']((typeof ($525=values).__array != 'undefined'?3286 ((typeof $525.__array[$526=$constant_int_0]) != 'undefined'?$525.__array[$526]:3287 $525.__getitem__($526)):3288 $525.__getitem__($constant_int_0)), $constant_int_1);3289 $pyjs.track.lineno=471;3290 self['assertEquals']((typeof ($527=values).__array != 'undefined'?3291 ((typeof $527.__array[$528=$constant_int_1]) != 'undefined'?$527.__array[$528]:3292 $527.__getitem__($528)):3293 $527.__getitem__($constant_int_1)), $constant_int_2);3294 $pyjs.track.lineno=472;3295 self['assertEquals']((typeof ($529=values).__array != 'undefined'?3296 ((typeof $529.__array[$530=$constant_int_2]) != 'undefined'?$529.__array[$530]:3297 $529.__getitem__($530)):3298 $529.__getitem__($constant_int_2)), $constant_int_3);3299 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);3300 return null;3301 }3302 , 1, [null,null,['self']]);3303 $cls_definition['testSimpleClassMethodCall'] = $method;3304 $pyjs.track.lineno=474;3305 $method = $pyjs__bind_method2('testKeywordClassMethodCall', function() {3306 if (this.__is_instance__ === true) {3307 var self = this;3308 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);3309 } else {3310 var self = arguments[0];3311 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);3312 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);3313 }3314 if ($pyjs.options.arg_instance_type) {3315 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {3316 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {3317 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);3318 }3319 }3320 }3321 var $549,$548,$541,$540,$543,$542,$545,$544,$547,$546,$554,$552,$553,$550,$551,$538,$539,$534,$535,$536,$537,$531,$532,$533,values;3322 $pyjs.track={module:'ArgsTest', lineno:474};$pyjs.trackstack.push($pyjs.track);3323 $pyjs.track.module='ArgsTest';3324 $pyjs.track.lineno=474;3325 $pyjs.track.lineno=475;3326 values = $pyjs_kwargs_call($m.ArgsTestClass3, 'foo2', null, null, [{c:$constant_int_3, b:$constant_int_2, a:$constant_int_1}]);3327 $pyjs.track.lineno=476;3328 self['assertEquals']((typeof ($531=values).__array != 'undefined'?3329 ((typeof $531.__array[$532=$constant_int_0]) != 'undefined'?$531.__array[$532]:3330 $531.__getitem__($532)):3331 $531.__getitem__($constant_int_0)), $constant_int_1);3332 $pyjs.track.lineno=477;3333 self['assertEquals']((typeof ($533=values).__array != 'undefined'?3334 ((typeof $533.__array[$534=$constant_int_1]) != 'undefined'?$533.__array[$534]:3335 $533.__getitem__($534)):3336 $533.__getitem__($constant_int_1)), $constant_int_2);3337 $pyjs.track.lineno=478;3338 self['assertEquals']((typeof ($535=values).__array != 'undefined'?3339 ((typeof $535.__array[$536=$constant_int_2]) != 'undefined'?$535.__array[$536]:3340 $535.__getitem__($536)):3341 $535.__getitem__($constant_int_2)), $constant_int_3);3342 $pyjs.track.lineno=480;3343 values = $pyjs_kwargs_call($m.ArgsTestClass3, 'foo2', null, null, [{b:$constant_int_2, a:$constant_int_1, c:$constant_int_3}]);3344 $pyjs.track.lineno=481;3345 self['assertEquals']((typeof ($537=values).__array != 'undefined'?3346 ((typeof $537.__array[$538=$constant_int_0]) != 'undefined'?$537.__array[$538]:3347 $537.__getitem__($538)):3348 $537.__getitem__($constant_int_0)), $constant_int_1);3349 $pyjs.track.lineno=482;3350 self['assertEquals']((typeof ($539=values).__array != 'undefined'?3351 ((typeof $539.__array[$540=$constant_int_1]) != 'undefined'?$539.__array[$540]:3352 $539.__getitem__($540)):3353 $539.__getitem__($constant_int_1)), $constant_int_2);3354 $pyjs.track.lineno=483;3355 self['assertEquals']((typeof ($541=values).__array != 'undefined'?3356 ((typeof $541.__array[$542=$constant_int_2]) != 'undefined'?$541.__array[$542]:3357 $541.__getitem__($542)):3358 $541.__getitem__($constant_int_2)), $constant_int_3);3359 $pyjs.track.lineno=485;3360 values = $m.ArgsTestClass3['foo2']();3361 $pyjs.track.lineno=486;3362 self['assertEquals']((typeof ($543=values).__array != 'undefined'?3363 ((typeof $543.__array[$544=$constant_int_0]) != 'undefined'?$543.__array[$544]:3364 $543.__getitem__($544)):3365 $543.__getitem__($constant_int_0)), null);3366 $pyjs.track.lineno=487;3367 self['assertEquals']((typeof ($545=values).__array != 'undefined'?3368 ((typeof $545.__array[$546=$constant_int_1]) != 'undefined'?$545.__array[$546]:3369 $545.__getitem__($546)):3370 $545.__getitem__($constant_int_1)), null);3371 $pyjs.track.lineno=488;3372 self['assertEquals']((typeof ($547=values).__array != 'undefined'?3373 ((typeof $547.__array[$548=$constant_int_2]) != 'undefined'?$547.__array[$548]:3374 $547.__getitem__($548)):3375 $547.__getitem__($constant_int_2)), null);3376 $pyjs.track.lineno=490;3377 values = $pyjs_kwargs_call($m.ArgsTestClass3, 'foo2', null, null, [{c:true}]);3378 $pyjs.track.lineno=491;3379 self['assertEquals']((typeof ($549=values).__array != 'undefined'?3380 ((typeof $549.__array[$550=$constant_int_0]) != 'undefined'?$549.__array[$550]:3381 $549.__getitem__($550)):3382 $549.__getitem__($constant_int_0)), null);3383 $pyjs.track.lineno=492;3384 self['assertEquals']((typeof ($551=values).__array != 'undefined'?3385 ((typeof $551.__array[$552=$constant_int_1]) != 'undefined'?$551.__array[$552]:3386 $551.__getitem__($552)):3387 $551.__getitem__($constant_int_1)), null);3388 $pyjs.track.lineno=493;3389 self['assertEquals']((typeof ($553=values).__array != 'undefined'?3390 ((typeof $553.__array[$554=$constant_int_2]) != 'undefined'?$553.__array[$554]:3391 $553.__getitem__($554)):3392 $553.__getitem__($constant_int_2)), true);3393 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);3394 return null;3395 }3396 , 1, [null,null,['self']]);3397 $cls_definition['testKeywordClassMethodCall'] = $method;3398 $pyjs.track.lineno=496;3399 $method = $pyjs__bind_method2('testDefaultValuesClassMethodCall', function() {3400 if (this.__is_instance__ === true) {3401 var self = this;3402 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);3403 } else {3404 var self = arguments[0];3405 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);3406 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);3407 }3408 if ($pyjs.options.arg_instance_type) {3409 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {3410 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {3411 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);3412 }3413 }3414 }3415 var $563,$562,$561,$560,$567,$565,$558,$559,$556,$557,$555,$572,values,$568,$571,$570,$564,$569,$566;3416 $pyjs.track={module:'ArgsTest', lineno:496};$pyjs.trackstack.push($pyjs.track);3417 $pyjs.track.module='ArgsTest';3418 $pyjs.track.lineno=496;3419 $pyjs.track.lineno=497;3420 values = $pyjs_kwargs_call($m.ArgsTestClass3, 'foo3', null, null, [{b:$constant_int_7}]);3421 $pyjs.track.lineno=498;3422 self['assertEquals']((typeof ($555=values).__array != 'undefined'?3423 ((typeof $555.__array[$556=$constant_int_0]) != 'undefined'?$555.__array[$556]:3424 $555.__getitem__($556)):3425 $555.__getitem__($constant_int_0)), $constant_int_1);3426 $pyjs.track.lineno=499;3427 self['assertEquals']((typeof ($557=values).__array != 'undefined'?3428 ((typeof $557.__array[$558=$constant_int_1]) != 'undefined'?$557.__array[$558]:3429 $557.__getitem__($558)):3430 $557.__getitem__($constant_int_1)), $constant_int_7);3431 $pyjs.track.lineno=500;3432 self['assertEquals']((typeof ($559=values).__array != 'undefined'?3433 ((typeof $559.__array[$560=$constant_int_2]) != 'undefined'?$559.__array[$560]:3434 $559.__getitem__($560)):3435 $559.__getitem__($constant_int_2)), $constant_int_3);3436 $pyjs.track.lineno=502;3437 values = $pyjs_kwargs_call($m.ArgsTestClass3, 'foo3', null, null, [{a:$constant_int_9}]);3438 $pyjs.track.lineno=503;3439 self['assertEquals']((typeof ($561=values).__array != 'undefined'?3440 ((typeof $561.__array[$562=$constant_int_0]) != 'undefined'?$561.__array[$562]:3441 $561.__getitem__($562)):3442 $561.__getitem__($constant_int_0)), $constant_int_9);3443 $pyjs.track.lineno=504;3444 self['assertEquals']((typeof ($563=values).__array != 'undefined'?3445 ((typeof $563.__array[$564=$constant_int_1]) != 'undefined'?$563.__array[$564]:3446 $563.__getitem__($564)):3447 $563.__getitem__($constant_int_1)), $constant_int_2);3448 $pyjs.track.lineno=505;3449 self['assertEquals']((typeof ($565=values).__array != 'undefined'?3450 ((typeof $565.__array[$566=$constant_int_2]) != 'undefined'?$565.__array[$566]:3451 $565.__getitem__($566)):3452 $565.__getitem__($constant_int_2)), $constant_int_3);3453 $pyjs.track.lineno=507;3454 values = $m.ArgsTestClass3['foo3']();3455 $pyjs.track.lineno=508;3456 self['assertEquals']((typeof ($567=values).__array != 'undefined'?3457 ((typeof $567.__array[$568=$constant_int_0]) != 'undefined'?$567.__array[$568]:3458 $567.__getitem__($568)):3459 $567.__getitem__($constant_int_0)), $constant_int_1);3460 $pyjs.track.lineno=509;3461 self['assertEquals']((typeof ($569=values).__array != 'undefined'?3462 ((typeof $569.__array[$570=$constant_int_1]) != 'undefined'?$569.__array[$570]:3463 $569.__getitem__($570)):3464 $569.__getitem__($constant_int_1)), $constant_int_2);3465 $pyjs.track.lineno=510;3466 self['assertEquals']((typeof ($571=values).__array != 'undefined'?3467 ((typeof $571.__array[$572=$constant_int_2]) != 'undefined'?$571.__array[$572]:3468 $571.__getitem__($572)):3469 $571.__getitem__($constant_int_2)), $constant_int_3);3470 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);3471 return null;3472 }3473 , 1, [null,null,['self']]);3474 $cls_definition['testDefaultValuesClassMethodCall'] = $method;3475 $pyjs.track.lineno=512;3476 $method = $pyjs__bind_method2('testVarargsClassMethodCall', function() {3477 if (this.__is_instance__ === true) {3478 var self = this;3479 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);3480 } else {3481 var self = arguments[0];3482 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);3483 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);3484 }3485 if ($pyjs.options.arg_instance_type) {3486 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {3487 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {3488 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);3489 }3490 }3491 }3492 var $573,$574,$575,$576,$577,$578,$579,$581,$580,$583,$582,values,$584;3493 $pyjs.track={module:'ArgsTest', lineno:512};$pyjs.trackstack.push($pyjs.track);3494 $pyjs.track.module='ArgsTest';3495 $pyjs.track.lineno=512;3496 $pyjs.track.lineno=513;3497 values = $m.ArgsTestClass3['foo4']($constant_int_1, $constant_int_2, $constant_int_3);3498 $pyjs.track.lineno=514;3499 self['assertEquals']((typeof ($573=values).__array != 'undefined'?3500 ((typeof $573.__array[$574=$constant_int_0]) != 'undefined'?$573.__array[$574]:3501 $573.__getitem__($574)):3502 $573.__getitem__($constant_int_0)), $constant_int_1);3503 $pyjs.track.lineno=515;3504 self['assertEquals']((typeof ($575=values).__array != 'undefined'?3505 ((typeof $575.__array[$576=$constant_int_1]) != 'undefined'?$575.__array[$576]:3506 $575.__getitem__($576)):3507 $575.__getitem__($constant_int_1)), $constant_int_2);3508 $pyjs.track.lineno=516;3509 self['assertEquals']((typeof ($577=values).__array != 'undefined'?3510 ((typeof $577.__array[$578=$constant_int_2]) != 'undefined'?$577.__array[$578]:3511 $577.__getitem__($578)):3512 $577.__getitem__($constant_int_2)), $constant_int_3);3513 $pyjs.track.lineno=518;3514 values = $m.ArgsTestClass3['foo4']($constant_int_3, $constant_int_2, $constant_int_1);3515 $pyjs.track.lineno=519;3516 self['assertEquals']((typeof ($579=values).__array != 'undefined'?3517 ((typeof $579.__array[$580=$constant_int_0]) != 'undefined'?$579.__array[$580]:3518 $579.__getitem__($580)):3519 $579.__getitem__($constant_int_0)), $constant_int_3);3520 $pyjs.track.lineno=520;3521 self['assertEquals']((typeof ($581=values).__array != 'undefined'?3522 ((typeof $581.__array[$582=$constant_int_1]) != 'undefined'?$581.__array[$582]:3523 $581.__getitem__($582)):3524 $581.__getitem__($constant_int_1)), $constant_int_2);3525 $pyjs.track.lineno=521;3526 self['assertEquals']((typeof ($583=values).__array != 'undefined'?3527 ((typeof $583.__array[$584=$constant_int_2]) != 'undefined'?$583.__array[$584]:3528 $583.__getitem__($584)):3529 $583.__getitem__($constant_int_2)), $constant_int_1);3530 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);3531 return null;3532 }3533 , 1, [null,null,['self']]);3534 $cls_definition['testVarargsClassMethodCall'] = $method;3535 $pyjs.track.lineno=523;3536 $method = $pyjs__bind_method2('testKwargsClassMethodCall', function() {3537 if (this.__is_instance__ === true) {3538 var self = this;3539 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);3540 } else {3541 var self = arguments[0];3542 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);3543 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);3544 }3545 if ($pyjs.options.arg_instance_type) {3546 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {3547 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {3548 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);3549 }3550 }3551 }3552 var $588,$585,$586,values,$587;3553 $pyjs.track={module:'ArgsTest', lineno:523};$pyjs.trackstack.push($pyjs.track);3554 $pyjs.track.module='ArgsTest';3555 $pyjs.track.lineno=523;3556 $pyjs.track.lineno=524;3557 values = $pyjs_kwargs_call($m.ArgsTestClass3, 'foo5', null, null, [{x:$constant_int_5, y:$constant_int_7}]);3558 $pyjs.track.lineno=525;3559 self['assertEquals']((typeof ($585=values).__array != 'undefined'?3560 ((typeof $585.__array[$586='x']) != 'undefined'?$585.__array[$586]:3561 $585.__getitem__($586)):3562 $585.__getitem__('x')), $constant_int_5);3563 $pyjs.track.lineno=526;3564 self['assertEquals']((typeof ($587=values).__array != 'undefined'?3565 ((typeof $587.__array[$588='y']) != 'undefined'?$587.__array[$588]:3566 $587.__getitem__($588)):3567 $587.__getitem__('y')), $constant_int_7);3568 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);3569 return null;3570 }3571 , 1, [null,null,['self']]);3572 $cls_definition['testKwargsClassMethodCall'] = $method;3573 $pyjs.track.lineno=528;3574 $method = $pyjs__bind_method2('testComboClassMethodCall', function() {3575 if (this.__is_instance__ === true) {3576 var self = this;3577 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);3578 } else {3579 var self = arguments[0];3580 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);3581 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);3582 }3583 if ($pyjs.options.arg_instance_type) {3584 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {3585 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {3586 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);3587 }3588 }3589 }3590 var $608,$606,$607,$604,$605,$602,$603,$600,$601,$589,$592,$593,$590,$591,$596,$597,$594,$595,$598,$599,values;3591 $pyjs.track={module:'ArgsTest', lineno:528};$pyjs.trackstack.push($pyjs.track);3592 $pyjs.track.module='ArgsTest';3593 $pyjs.track.lineno=528;3594 $pyjs.track.lineno=529;3595 values = $pyjs_kwargs_call($m.ArgsTestClass3, 'foo6', null, null, [{x:$constant_int_4, y:$constant_int_5}, $constant_int_1, $constant_int_2, $constant_int_3]);3596 $pyjs.track.lineno=530;3597 self['assertEquals']((typeof ($591=(typeof ($589=values).__array != 'undefined'?3598 ((typeof $589.__array[$590=$constant_int_0]) != 'undefined'?$589.__array[$590]:3599 $589.__getitem__($590)):3600 $589.__getitem__($constant_int_0))).__array != 'undefined'?3601 ((typeof $591.__array[$592=$constant_int_0]) != 'undefined'?$591.__array[$592]:3602 $591.__getitem__($592)):3603 $591.__getitem__($constant_int_0)), $constant_int_1);3604 $pyjs.track.lineno=531;3605 self['assertEquals']((typeof ($595=(typeof ($593=values).__array != 'undefined'?3606 ((typeof $593.__array[$594=$constant_int_0]) != 'undefined'?$593.__array[$594]:3607 $593.__getitem__($594)):3608 $593.__getitem__($constant_int_0))).__array != 'undefined'?3609 ((typeof $595.__array[$596=$constant_int_1]) != 'undefined'?$595.__array[$596]:3610 $595.__getitem__($596)):3611 $595.__getitem__($constant_int_1)), $constant_int_2);3612 $pyjs.track.lineno=532;3613 self['assertEquals']((typeof ($599=(typeof ($597=values).__array != 'undefined'?3614 ((typeof $597.__array[$598=$constant_int_0]) != 'undefined'?$597.__array[$598]:3615 $597.__getitem__($598)):3616 $597.__getitem__($constant_int_0))).__array != 'undefined'?3617 ((typeof $599.__array[$600=$constant_int_2]) != 'undefined'?$599.__array[$600]:3618 $599.__getitem__($600)):3619 $599.__getitem__($constant_int_2)), $constant_int_3);3620 $pyjs.track.lineno=533;3621 self['assertEquals']((typeof ($603=(typeof ($601=values).__array != 'undefined'?3622 ((typeof $601.__array[$602=$constant_int_1]) != 'undefined'?$601.__array[$602]:3623 $601.__getitem__($602)):3624 $601.__getitem__($constant_int_1))).__array != 'undefined'?3625 ((typeof $603.__array[$604='x']) != 'undefined'?$603.__array[$604]:3626 $603.__getitem__($604)):3627 $603.__getitem__('x')), $constant_int_4);3628 $pyjs.track.lineno=534;3629 self['assertEquals']((typeof ($607=(typeof ($605=values).__array != 'undefined'?3630 ((typeof $605.__array[$606=$constant_int_1]) != 'undefined'?$605.__array[$606]:3631 $605.__getitem__($606)):3632 $605.__getitem__($constant_int_1))).__array != 'undefined'?3633 ((typeof $607.__array[$608='y']) != 'undefined'?$607.__array[$608]:3634 $607.__getitem__($608)):3635 $607.__getitem__('y')), $constant_int_5);3636 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);3637 return null;3638 }3639 , 1, [null,null,['self']]);3640 $cls_definition['testComboClassMethodCall'] = $method;3641 $pyjs.track.lineno=536;3642 $method = $pyjs__bind_method2('testEdgeClassMethodCall', function() {3643 if (this.__is_instance__ === true) {3644 var self = this;3645 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);3646 } else {3647 var self = arguments[0];3648 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);3649 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);3650 }3651 if ($pyjs.options.arg_instance_type) {3652 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {3653 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {3654 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);3655 }3656 }3657 }3658 var $620,$621,$622,$623,$624,$625,$626,$609,$628,$627,$619,$618,$611,$610,$613,$612,$615,$614,$617,$616,vaules,values;3659 $pyjs.track={module:'ArgsTest', lineno:536};$pyjs.trackstack.push($pyjs.track);3660 $pyjs.track.module='ArgsTest';3661 $pyjs.track.lineno=536;3662 $pyjs.track.lineno=537;3663 values = $pyjs_kwargs_call($m.ArgsTestClass3, 'foo7', null, null, [{b:$constant_int_2}, $constant_int_1, $constant_int_2, $constant_int_3]);3664 $pyjs.track.lineno=538;3665 self['assertEqual']((typeof ($609=values).__array != 'undefined'?3666 ((typeof $609.__array[$610=$constant_int_0]) != 'undefined'?$609.__array[$610]:3667 $609.__getitem__($610)):3668 $609.__getitem__($constant_int_0)), $constant_int_1);3669 $pyjs.track.lineno=539;3670 self['assertEqual']((typeof ($611=values).__array != 'undefined'?3671 ((typeof $611.__array[$612=$constant_int_1]) != 'undefined'?$611.__array[$612]:3672 $611.__getitem__($612)):3673 $611.__getitem__($constant_int_1)), $p['tuple']([$constant_int_2, $constant_int_3]));3674 $pyjs.track.lineno=540;3675 self['assertEqual']((typeof ($613=values).__array != 'undefined'?3676 ((typeof $613.__array[$614=$constant_int_2]) != 'undefined'?$613.__array[$614]:3677 $613.__getitem__($614)):3678 $613.__getitem__($constant_int_2)), $p['dict']([['b', $constant_int_2]]));3679 $pyjs.track.lineno=542;3680 values = $m.ArgsTestClass3['foo7']($constant_int_1, $constant_int_2, $constant_int_3, $p['dict']([['b', $constant_int_2]]));3681 $pyjs.track.lineno=543;3682 self['assertEqual']((typeof ($615=values).__array != 'undefined'?3683 ((typeof $615.__array[$616=$constant_int_0]) != 'undefined'?$615.__array[$616]:3684 $615.__getitem__($616)):3685 $615.__getitem__($constant_int_0)), $constant_int_1);3686 $pyjs.track.lineno=544;3687 self['assertEqual']((typeof ($617=values).__array != 'undefined'?3688 ((typeof $617.__array[$618=$constant_int_1]) != 'undefined'?$617.__array[$618]:3689 $617.__getitem__($618)):3690 $617.__getitem__($constant_int_1)), $p['tuple']([$constant_int_2, $constant_int_3, $p['dict']([['b', $constant_int_2]])]));3691 $pyjs.track.lineno=545;3692 self['assertEqual']((typeof ($619=values).__array != 'undefined'?3693 ((typeof $619.__array[$620=$constant_int_2]) != 'undefined'?$619.__array[$620]:3694 $619.__getitem__($620)):3695 $619.__getitem__($constant_int_2)), $p['dict']([]));3696 $pyjs.track.lineno=547;3697 vaules = $pyjs_kwargs_call($m.ArgsTestClass3, 'foo8', null, null, [{b:$constant_int_2}, $constant_int_1]);3698 $pyjs.track.lineno=548;3699 self['assertEqual']((typeof ($621=vaules).__array != 'undefined'?3700 ((typeof $621.__array[$622=$constant_int_0]) != 'undefined'?$621.__array[$622]:3701 $621.__getitem__($622)):3702 $621.__getitem__($constant_int_0)), $constant_int_1);3703 $pyjs.track.lineno=549;3704 self['assertEqual']((typeof ($623=vaules).__array != 'undefined'?3705 ((typeof $623.__array[$624=$constant_int_1]) != 'undefined'?$623.__array[$624]:3706 $623.__getitem__($624)):3707 $623.__getitem__($constant_int_1)), $p['dict']([['b', $constant_int_2]]));3708 $pyjs.track.lineno=551;3709 vaules = $m.ArgsTestClass3['foo8']($p['dict']([['b', $constant_int_2]]));3710 $pyjs.track.lineno=552;3711 self['assertEqual']((typeof ($625=vaules).__array != 'undefined'?3712 ((typeof $625.__array[$626=$constant_int_0]) != 'undefined'?$625.__array[$626]:3713 $625.__getitem__($626)):3714 $625.__getitem__($constant_int_0)), $p['dict']([['b', $constant_int_2]]));3715 $pyjs.track.lineno=553;3716 self['assertEqual']((typeof ($627=vaules).__array != 'undefined'?3717 ((typeof $627.__array[$628=$constant_int_1]) != 'undefined'?$627.__array[$628]:3718 $627.__getitem__($628)):3719 $627.__getitem__($constant_int_1)), $p['dict']([]));3720 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);3721 return null;3722 }3723 , 1, [null,null,['self']]);3724 $cls_definition['testEdgeClassMethodCall'] = $method;3725 $pyjs.track.lineno=555;3726 $method = $pyjs__bind_method2('testSimpleIndirectClassMethodCall', function() {3727 if (this.__is_instance__ === true) {3728 var self = this;3729 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);3730 } else {3731 var self = arguments[0];3732 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);3733 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);3734 }3735 if ($pyjs.options.arg_instance_type) {3736 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {3737 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {3738 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);3739 }3740 }3741 }3742 var $633,$632,$631,$630,$637,$636,$635,$634,$629,$638,values,$640,$639;3743 $pyjs.track={module:'ArgsTest', lineno:555};$pyjs.trackstack.push($pyjs.track);3744 $pyjs.track.module='ArgsTest';3745 $pyjs.track.lineno=555;3746 $pyjs.track.lineno=556;3747 values = $m.ArgsTestClass3()['foo']($constant_int_1, $constant_int_2, $constant_int_3);3748 $pyjs.track.lineno=557;3749 self['assertEquals']((typeof ($629=values).__array != 'undefined'?3750 ((typeof $629.__array[$630=$constant_int_0]) != 'undefined'?$629.__array[$630]:3751 $629.__getitem__($630)):3752 $629.__getitem__($constant_int_0)), $constant_int_1);3753 $pyjs.track.lineno=558;3754 self['assertEquals']((typeof ($631=values).__array != 'undefined'?3755 ((typeof $631.__array[$632=$constant_int_1]) != 'undefined'?$631.__array[$632]:3756 $631.__getitem__($632)):3757 $631.__getitem__($constant_int_1)), $constant_int_2);3758 $pyjs.track.lineno=559;3759 self['assertEquals']((typeof ($633=values).__array != 'undefined'?3760 ((typeof $633.__array[$634=$constant_int_2]) != 'undefined'?$633.__array[$634]:3761 $633.__getitem__($634)):3762 $633.__getitem__($constant_int_2)), $constant_int_3);3763 $pyjs.track.lineno=561;3764 values = $m.ArgsTestClass3()['foo2']($constant_int_1, $constant_int_2, $constant_int_3);3765 $pyjs.track.lineno=562;3766 self['assertEquals']((typeof ($635=values).__array != 'undefined'?3767 ((typeof $635.__array[$636=$constant_int_0]) != 'undefined'?$635.__array[$636]:3768 $635.__getitem__($636)):3769 $635.__getitem__($constant_int_0)), $constant_int_1);3770 $pyjs.track.lineno=563;3771 self['assertEquals']((typeof ($637=values).__array != 'undefined'?3772 ((typeof $637.__array[$638=$constant_int_1]) != 'undefined'?$637.__array[$638]:3773 $637.__getitem__($638)):3774 $637.__getitem__($constant_int_1)), $constant_int_2);3775 $pyjs.track.lineno=564;3776 self['assertEquals']((typeof ($639=values).__array != 'undefined'?3777 ((typeof $639.__array[$640=$constant_int_2]) != 'undefined'?$639.__array[$640]:3778 $639.__getitem__($640)):3779 $639.__getitem__($constant_int_2)), $constant_int_3);3780 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);3781 return null;3782 }3783 , 1, [null,null,['self']]);3784 $cls_definition['testSimpleIndirectClassMethodCall'] = $method;3785 $pyjs.track.lineno=566;3786 $method = $pyjs__bind_method2('testKeywordIndirectClassMethodCall', function() {3787 if (this.__is_instance__ === true) {3788 var self = this;3789 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);3790 } else {3791 var self = arguments[0];3792 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);3793 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);3794 }3795 if ($pyjs.options.arg_instance_type) {3796 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {3797 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {3798 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);3799 }3800 }3801 }3802 var $664,$648,$649,$642,$643,$641,$660,$647,$644,$645,$646,$661,$662,$663,$655,$654,$657,$656,$651,$650,$653,$652,$659,$658,values;3803 $pyjs.track={module:'ArgsTest', lineno:566};$pyjs.trackstack.push($pyjs.track);3804 $pyjs.track.module='ArgsTest';3805 $pyjs.track.lineno=566;3806 $pyjs.track.lineno=567;3807 values = $pyjs_kwargs_call($m.ArgsTestClass3(), 'foo2', null, null, [{c:$constant_int_3, b:$constant_int_2, a:$constant_int_1}]);3808 $pyjs.track.lineno=568;3809 self['assertEquals']((typeof ($641=values).__array != 'undefined'?3810 ((typeof $641.__array[$642=$constant_int_0]) != 'undefined'?$641.__array[$642]:3811 $641.__getitem__($642)):3812 $641.__getitem__($constant_int_0)), $constant_int_1);3813 $pyjs.track.lineno=569;3814 self['assertEquals']((typeof ($643=values).__array != 'undefined'?3815 ((typeof $643.__array[$644=$constant_int_1]) != 'undefined'?$643.__array[$644]:3816 $643.__getitem__($644)):3817 $643.__getitem__($constant_int_1)), $constant_int_2);3818 $pyjs.track.lineno=570;3819 self['assertEquals']((typeof ($645=values).__array != 'undefined'?3820 ((typeof $645.__array[$646=$constant_int_2]) != 'undefined'?$645.__array[$646]:3821 $645.__getitem__($646)):3822 $645.__getitem__($constant_int_2)), $constant_int_3);3823 $pyjs.track.lineno=572;3824 values = $pyjs_kwargs_call($m.ArgsTestClass3(), 'foo2', null, null, [{b:$constant_int_2, a:$constant_int_1, c:$constant_int_3}]);3825 $pyjs.track.lineno=573;3826 self['assertEquals']((typeof ($647=values).__array != 'undefined'?3827 ((typeof $647.__array[$648=$constant_int_0]) != 'undefined'?$647.__array[$648]:3828 $647.__getitem__($648)):3829 $647.__getitem__($constant_int_0)), $constant_int_1);3830 $pyjs.track.lineno=574;3831 self['assertEquals']((typeof ($649=values).__array != 'undefined'?3832 ((typeof $649.__array[$650=$constant_int_1]) != 'undefined'?$649.__array[$650]:3833 $649.__getitem__($650)):3834 $649.__getitem__($constant_int_1)), $constant_int_2);3835 $pyjs.track.lineno=575;3836 self['assertEquals']((typeof ($651=values).__array != 'undefined'?3837 ((typeof $651.__array[$652=$constant_int_2]) != 'undefined'?$651.__array[$652]:3838 $651.__getitem__($652)):3839 $651.__getitem__($constant_int_2)), $constant_int_3);3840 $pyjs.track.lineno=577;3841 values = $m.ArgsTestClass3()['foo2']();3842 $pyjs.track.lineno=578;3843 self['assertEquals']((typeof ($653=values).__array != 'undefined'?3844 ((typeof $653.__array[$654=$constant_int_0]) != 'undefined'?$653.__array[$654]:3845 $653.__getitem__($654)):3846 $653.__getitem__($constant_int_0)), null);3847 $pyjs.track.lineno=579;3848 self['assertEquals']((typeof ($655=values).__array != 'undefined'?3849 ((typeof $655.__array[$656=$constant_int_1]) != 'undefined'?$655.__array[$656]:3850 $655.__getitem__($656)):3851 $655.__getitem__($constant_int_1)), null);3852 $pyjs.track.lineno=580;3853 self['assertEquals']((typeof ($657=values).__array != 'undefined'?3854 ((typeof $657.__array[$658=$constant_int_2]) != 'undefined'?$657.__array[$658]:3855 $657.__getitem__($658)):3856 $657.__getitem__($constant_int_2)), null);3857 $pyjs.track.lineno=582;3858 values = $pyjs_kwargs_call($m.ArgsTestClass3(), 'foo2', null, null, [{c:true}]);3859 $pyjs.track.lineno=583;3860 self['assertEquals']((typeof ($659=values).__array != 'undefined'?3861 ((typeof $659.__array[$660=$constant_int_0]) != 'undefined'?$659.__array[$660]:3862 $659.__getitem__($660)):3863 $659.__getitem__($constant_int_0)), null);3864 $pyjs.track.lineno=584;3865 self['assertEquals']((typeof ($661=values).__array != 'undefined'?3866 ((typeof $661.__array[$662=$constant_int_1]) != 'undefined'?$661.__array[$662]:3867 $661.__getitem__($662)):3868 $661.__getitem__($constant_int_1)), null);3869 $pyjs.track.lineno=585;3870 self['assertEquals']((typeof ($663=values).__array != 'undefined'?3871 ((typeof $663.__array[$664=$constant_int_2]) != 'undefined'?$663.__array[$664]:3872 $663.__getitem__($664)):3873 $663.__getitem__($constant_int_2)), true);3874 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);3875 return null;3876 }3877 , 1, [null,null,['self']]);3878 $cls_definition['testKeywordIndirectClassMethodCall'] = $method;3879 $pyjs.track.lineno=588;3880 $method = $pyjs__bind_method2('testDefaultValuesIndirectClassMethodCall', function() {3881 if (this.__is_instance__ === true) {3882 var self = this;3883 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);3884 } else {3885 var self = arguments[0];3886 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);3887 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);3888 }3889 if ($pyjs.options.arg_instance_type) {3890 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {3891 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {3892 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);3893 }3894 }3895 }3896 var $674,$675,$680,$681,$673,$678,$682,values,$669,$679,$676,$677,$665,$666,$667,$671,$672,$668,$670;3897 $pyjs.track={module:'ArgsTest', lineno:588};$pyjs.trackstack.push($pyjs.track);3898 $pyjs.track.module='ArgsTest';3899 $pyjs.track.lineno=588;3900 $pyjs.track.lineno=589;3901 values = $pyjs_kwargs_call($m.ArgsTestClass3(), 'foo3', null, null, [{b:$constant_int_7}]);3902 $pyjs.track.lineno=590;3903 self['assertEquals']((typeof ($665=values).__array != 'undefined'?3904 ((typeof $665.__array[$666=$constant_int_0]) != 'undefined'?$665.__array[$666]:3905 $665.__getitem__($666)):3906 $665.__getitem__($constant_int_0)), $constant_int_1);3907 $pyjs.track.lineno=591;3908 self['assertEquals']((typeof ($667=values).__array != 'undefined'?3909 ((typeof $667.__array[$668=$constant_int_1]) != 'undefined'?$667.__array[$668]:3910 $667.__getitem__($668)):3911 $667.__getitem__($constant_int_1)), $constant_int_7);3912 $pyjs.track.lineno=592;3913 self['assertEquals']((typeof ($669=values).__array != 'undefined'?3914 ((typeof $669.__array[$670=$constant_int_2]) != 'undefined'?$669.__array[$670]:3915 $669.__getitem__($670)):3916 $669.__getitem__($constant_int_2)), $constant_int_3);3917 $pyjs.track.lineno=594;3918 values = $pyjs_kwargs_call($m.ArgsTestClass3(), 'foo3', null, null, [{a:$constant_int_9}]);3919 $pyjs.track.lineno=595;3920 self['assertEquals']((typeof ($671=values).__array != 'undefined'?3921 ((typeof $671.__array[$672=$constant_int_0]) != 'undefined'?$671.__array[$672]:3922 $671.__getitem__($672)):3923 $671.__getitem__($constant_int_0)), $constant_int_9);3924 $pyjs.track.lineno=596;3925 self['assertEquals']((typeof ($673=values).__array != 'undefined'?3926 ((typeof $673.__array[$674=$constant_int_1]) != 'undefined'?$673.__array[$674]:3927 $673.__getitem__($674)):3928 $673.__getitem__($constant_int_1)), $constant_int_2);3929 $pyjs.track.lineno=597;3930 self['assertEquals']((typeof ($675=values).__array != 'undefined'?3931 ((typeof $675.__array[$676=$constant_int_2]) != 'undefined'?$675.__array[$676]:3932 $675.__getitem__($676)):3933 $675.__getitem__($constant_int_2)), $constant_int_3);3934 $pyjs.track.lineno=599;3935 values = $m.ArgsTestClass3()['foo3']();3936 $pyjs.track.lineno=600;3937 self['assertEquals']((typeof ($677=values).__array != 'undefined'?3938 ((typeof $677.__array[$678=$constant_int_0]) != 'undefined'?$677.__array[$678]:3939 $677.__getitem__($678)):3940 $677.__getitem__($constant_int_0)), $constant_int_1);3941 $pyjs.track.lineno=601;3942 self['assertEquals']((typeof ($679=values).__array != 'undefined'?3943 ((typeof $679.__array[$680=$constant_int_1]) != 'undefined'?$679.__array[$680]:3944 $679.__getitem__($680)):3945 $679.__getitem__($constant_int_1)), $constant_int_2);3946 $pyjs.track.lineno=602;3947 self['assertEquals']((typeof ($681=values).__array != 'undefined'?3948 ((typeof $681.__array[$682=$constant_int_2]) != 'undefined'?$681.__array[$682]:3949 $681.__getitem__($682)):3950 $681.__getitem__($constant_int_2)), $constant_int_3);3951 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);3952 return null;3953 }3954 , 1, [null,null,['self']]);3955 $cls_definition['testDefaultValuesIndirectClassMethodCall'] = $method;3956 $pyjs.track.lineno=604;3957 $method = $pyjs__bind_method2('testVarargsIndirectClassMethodCall', function() {3958 if (this.__is_instance__ === true) {3959 var self = this;3960 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);3961 } else {3962 var self = arguments[0];3963 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);3964 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);3965 }3966 if ($pyjs.options.arg_instance_type) {3967 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {3968 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {3969 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);3970 }3971 }3972 }3973 var $691,$690,$694,$693,$692,$686,$687,$684,$685,values,$683,$688,$689;3974 $pyjs.track={module:'ArgsTest', lineno:604};$pyjs.trackstack.push($pyjs.track);3975 $pyjs.track.module='ArgsTest';3976 $pyjs.track.lineno=604;3977 $pyjs.track.lineno=605;3978 values = $m.ArgsTestClass3()['foo4']($constant_int_1, $constant_int_2, $constant_int_3);3979 $pyjs.track.lineno=606;3980 self['assertEquals']((typeof ($683=values).__array != 'undefined'?3981 ((typeof $683.__array[$684=$constant_int_0]) != 'undefined'?$683.__array[$684]:3982 $683.__getitem__($684)):3983 $683.__getitem__($constant_int_0)), $constant_int_1);3984 $pyjs.track.lineno=607;3985 self['assertEquals']((typeof ($685=values).__array != 'undefined'?3986 ((typeof $685.__array[$686=$constant_int_1]) != 'undefined'?$685.__array[$686]:3987 $685.__getitem__($686)):3988 $685.__getitem__($constant_int_1)), $constant_int_2);3989 $pyjs.track.lineno=608;3990 self['assertEquals']((typeof ($687=values).__array != 'undefined'?3991 ((typeof $687.__array[$688=$constant_int_2]) != 'undefined'?$687.__array[$688]:3992 $687.__getitem__($688)):3993 $687.__getitem__($constant_int_2)), $constant_int_3);3994 $pyjs.track.lineno=610;3995 values = $m.ArgsTestClass3()['foo4']($constant_int_3, $constant_int_2, $constant_int_1);3996 $pyjs.track.lineno=611;3997 self['assertEquals']((typeof ($689=values).__array != 'undefined'?3998 ((typeof $689.__array[$690=$constant_int_0]) != 'undefined'?$689.__array[$690]:3999 $689.__getitem__($690)):4000 $689.__getitem__($constant_int_0)), $constant_int_3);4001 $pyjs.track.lineno=612;4002 self['assertEquals']((typeof ($691=values).__array != 'undefined'?4003 ((typeof $691.__array[$692=$constant_int_1]) != 'undefined'?$691.__array[$692]:4004 $691.__getitem__($692)):4005 $691.__getitem__($constant_int_1)), $constant_int_2);4006 $pyjs.track.lineno=613;4007 self['assertEquals']((typeof ($693=values).__array != 'undefined'?4008 ((typeof $693.__array[$694=$constant_int_2]) != 'undefined'?$693.__array[$694]:4009 $693.__getitem__($694)):4010 $693.__getitem__($constant_int_2)), $constant_int_1);4011 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);4012 return null;4013 }4014 , 1, [null,null,['self']]);4015 $cls_definition['testVarargsIndirectClassMethodCall'] = $method;4016 $pyjs.track.lineno=615;4017 $method = $pyjs__bind_method2('testKwargsIndirectClassMethodCall', function() {4018 if (this.__is_instance__ === true) {4019 var self = this;4020 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);4021 } else {4022 var self = arguments[0];4023 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);4024 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);4025 }4026 if ($pyjs.options.arg_instance_type) {4027 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {4028 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {4029 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);4030 }4031 }4032 }4033 var $696,$695,$697,$698,values;4034 $pyjs.track={module:'ArgsTest', lineno:615};$pyjs.trackstack.push($pyjs.track);4035 $pyjs.track.module='ArgsTest';4036 $pyjs.track.lineno=615;4037 $pyjs.track.lineno=616;4038 values = $pyjs_kwargs_call($m.ArgsTestClass3(), 'foo5', null, null, [{x:$constant_int_5, y:$constant_int_7}]);4039 $pyjs.track.lineno=617;4040 self['assertEquals']((typeof ($695=values).__array != 'undefined'?4041 ((typeof $695.__array[$696='x']) != 'undefined'?$695.__array[$696]:4042 $695.__getitem__($696)):4043 $695.__getitem__('x')), $constant_int_5);4044 $pyjs.track.lineno=618;4045 self['assertEquals']((typeof ($697=values).__array != 'undefined'?4046 ((typeof $697.__array[$698='y']) != 'undefined'?$697.__array[$698]:4047 $697.__getitem__($698)):4048 $697.__getitem__('y')), $constant_int_7);4049 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);4050 return null;4051 }4052 , 1, [null,null,['self']]);4053 $cls_definition['testKwargsIndirectClassMethodCall'] = $method;4054 $pyjs.track.lineno=620;4055 $method = $pyjs__bind_method2('testComboIndirectClassMethodCall', function() {4056 if (this.__is_instance__ === true) {4057 var self = this;4058 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);4059 } else {4060 var self = arguments[0];4061 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);4062 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);4063 }4064 if ($pyjs.options.arg_instance_type) {4065 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {4066 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {4067 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);4068 }4069 }4070 }4071 var $714,$715,$716,$717,$710,$711,$712,$713,$718,$707,$706,$705,$704,$703,$702,$701,$700,$699,$709,$708,values;4072 $pyjs.track={module:'ArgsTest', lineno:620};$pyjs.trackstack.push($pyjs.track);4073 $pyjs.track.module='ArgsTest';4074 $pyjs.track.lineno=620;4075 $pyjs.track.lineno=621;4076 values = $pyjs_kwargs_call($m.ArgsTestClass3(), 'foo6', null, null, [{x:$constant_int_4, y:$constant_int_5}, $constant_int_1, $constant_int_2, $constant_int_3]);4077 $pyjs.track.lineno=622;4078 self['assertEquals']((typeof ($701=(typeof ($699=values).__array != 'undefined'?4079 ((typeof $699.__array[$700=$constant_int_0]) != 'undefined'?$699.__array[$700]:4080 $699.__getitem__($700)):4081 $699.__getitem__($constant_int_0))).__array != 'undefined'?4082 ((typeof $701.__array[$702=$constant_int_0]) != 'undefined'?$701.__array[$702]:4083 $701.__getitem__($702)):4084 $701.__getitem__($constant_int_0)), $constant_int_1);4085 $pyjs.track.lineno=623;4086 self['assertEquals']((typeof ($705=(typeof ($703=values).__array != 'undefined'?4087 ((typeof $703.__array[$704=$constant_int_0]) != 'undefined'?$703.__array[$704]:4088 $703.__getitem__($704)):4089 $703.__getitem__($constant_int_0))).__array != 'undefined'?4090 ((typeof $705.__array[$706=$constant_int_1]) != 'undefined'?$705.__array[$706]:4091 $705.__getitem__($706)):4092 $705.__getitem__($constant_int_1)), $constant_int_2);4093 $pyjs.track.lineno=624;4094 self['assertEquals']((typeof ($709=(typeof ($707=values).__array != 'undefined'?4095 ((typeof $707.__array[$708=$constant_int_0]) != 'undefined'?$707.__array[$708]:4096 $707.__getitem__($708)):4097 $707.__getitem__($constant_int_0))).__array != 'undefined'?4098 ((typeof $709.__array[$710=$constant_int_2]) != 'undefined'?$709.__array[$710]:4099 $709.__getitem__($710)):4100 $709.__getitem__($constant_int_2)), $constant_int_3);4101 $pyjs.track.lineno=625;4102 self['assertEquals']((typeof ($713=(typeof ($711=values).__array != 'undefined'?4103 ((typeof $711.__array[$712=$constant_int_1]) != 'undefined'?$711.__array[$712]:4104 $711.__getitem__($712)):4105 $711.__getitem__($constant_int_1))).__array != 'undefined'?4106 ((typeof $713.__array[$714='x']) != 'undefined'?$713.__array[$714]:4107 $713.__getitem__($714)):4108 $713.__getitem__('x')), $constant_int_4);4109 $pyjs.track.lineno=626;4110 self['assertEquals']((typeof ($717=(typeof ($715=values).__array != 'undefined'?4111 ((typeof $715.__array[$716=$constant_int_1]) != 'undefined'?$715.__array[$716]:4112 $715.__getitem__($716)):4113 $715.__getitem__($constant_int_1))).__array != 'undefined'?4114 ((typeof $717.__array[$718='y']) != 'undefined'?$717.__array[$718]:4115 $717.__getitem__($718)):4116 $717.__getitem__('y')), $constant_int_5);4117 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);4118 return null;4119 }4120 , 1, [null,null,['self']]);4121 $cls_definition['testComboIndirectClassMethodCall'] = $method;4122 $pyjs.track.lineno=628;4123 $method = $pyjs__bind_method2('testKwArgsRecurse', function() {4124 if (this.__is_instance__ === true) {4125 var self = this;4126 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);4127 } else {4128 var self = arguments[0];4129 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);4130 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);4131 }4132 if ($pyjs.options.arg_instance_type) {4133 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {4134 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {4135 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);4136 }4137 }4138 }4139 var kwa,$732,$733,$730,$731,$736,$737,$734,$735,$750,$751,$738,$739,$719,$741,$740,$747,$746,$742,$pyjs_try_err,$745,$744,$752,$bool2,$749,$bool1,$729,$728,$725,$724,$727,$726,$721,$720,$723,$722,e,$743,$748,values;4140 $pyjs.track={module:'ArgsTest', lineno:628};$pyjs.trackstack.push($pyjs.track);4141 $pyjs.track.module='ArgsTest';4142 $pyjs.track.lineno=628;4143 $pyjs.track.lineno=629;4144 kwa = $pyjs_kwargs_call(null, (typeof kw_args == "undefined"?$m.kw_args:kw_args), null, null, [{x:$constant_int_5, y:$constant_int_6}]);4145 $pyjs.track.lineno=630;4146 if ((($bool1=kwa) === null || $bool1 === false || $bool1 === 0 || $bool1 === '' ?4147 false :4148 (typeof $bool1=='object'?4149 (typeof $bool1.__nonzero__=='function'?4150 $bool1.__nonzero__() :4151 (typeof $bool1.__len__=='function'?4152 ($bool1.__len__()>0 ?4153 true :4154 false) :4155 true ) ) :4156 true ) )) {4157 $pyjs.track.lineno=631;4158 self['assertEquals'](kwa['get']('x'), $constant_int_5);4159 $pyjs.track.lineno=632;4160 self['assertEquals'](kwa['get']('y'), $constant_int_6);4161 }4162 $pyjs.track.lineno=634;4163 kwa = $pyjs_kwargs_call(null, (typeof kw_args2 == "undefined"?$m.kw_args2:kw_args2), null, null, [{x:$constant_int_5, y:$constant_int_6}]);4164 $pyjs.track.lineno=635;4165 if ((($bool2=kwa) === null || $bool2 === false || $bool2 === 0 || $bool2 === '' ?4166 false :4167 (typeof $bool2=='object'?4168 (typeof $bool2.__nonzero__=='function'?4169 $bool2.__nonzero__() :4170 (typeof $bool2.__len__=='function'?4171 ($bool2.__len__()>0 ?4172 true :4173 false) :4174 true ) ) :4175 true ) )) {4176 $pyjs.track.lineno=636;4177 self['assertEquals'](kwa['get']('x'), $constant_int_5);4178 $pyjs.track.lineno=637;4179 self['assertEquals'](kwa['get']('y'), $constant_int_6);4180 }4181 $pyjs.track.lineno=639;4182 values = $pyjs_kwargs_call(null, (typeof varargs_kwargs == "undefined"?$m.varargs_kwargs:varargs_kwargs), null, null, [{c:$constant_int_3}, $constant_int_1, $constant_int_2, $constant_int_3, $constant_int_4]);4183 $pyjs.track.lineno=640;4184 self['assertEquals']((typeof ($719=values).__array != 'undefined'?4185 ((typeof $719.__array[$720=$constant_int_0]) != 'undefined'?$719.__array[$720]:4186 $719.__getitem__($720)):4187 $719.__getitem__($constant_int_0)), $constant_int_1);4188 $pyjs.track.lineno=641;4189 self['assertEquals']((typeof ($721=values).__array != 'undefined'?4190 ((typeof $721.__array[$722=$constant_int_1]) != 'undefined'?$721.__array[$722]:4191 $721.__getitem__($722)):4192 $721.__getitem__($constant_int_1)), $constant_int_2);4193 $pyjs.track.lineno=642;4194 self['assertEquals']((typeof ($723=values).__array != 'undefined'?4195 ((typeof $723.__array[$724=$constant_int_2]) != 'undefined'?$723.__array[$724]:4196 $723.__getitem__($724)):4197 $723.__getitem__($constant_int_2)), $p['tuple']([$constant_int_3, $constant_int_4]));4198 $pyjs.track.lineno=643;4199 self['assertEquals']((typeof ($727=(typeof ($725=values).__array != 'undefined'?4200 ((typeof $725.__array[$726=$constant_int_3]) != 'undefined'?$725.__array[$726]:4201 $725.__getitem__($726)):4202 $725.__getitem__($constant_int_3))).__array != 'undefined'?4203 ((typeof $727.__array[$728='c']) != 'undefined'?$727.__array[$728]:4204 $727.__getitem__($728)):4205 $727.__getitem__('c')), $constant_int_3);4206 $pyjs.track.lineno=645;4207 values = $pyjs_kwargs_call(null, (typeof varargs_kwargs2 == "undefined"?$m.varargs_kwargs2:varargs_kwargs2), null, null, [{c:$constant_int_3}, $constant_int_1, $constant_int_2, $constant_int_3, $constant_int_4]);4208 $pyjs.track.lineno=646;4209 self['assertEquals']((typeof ($729=values).__array != 'undefined'?4210 ((typeof $729.__array[$730=$constant_int_0]) != 'undefined'?$729.__array[$730]:4211 $729.__getitem__($730)):4212 $729.__getitem__($constant_int_0)), $constant_int_1);4213 $pyjs.track.lineno=647;4214 self['assertEquals']((typeof ($731=values).__array != 'undefined'?4215 ((typeof $731.__array[$732=$constant_int_1]) != 'undefined'?$731.__array[$732]:4216 $731.__getitem__($732)):4217 $731.__getitem__($constant_int_1)), $constant_int_2);4218 $pyjs.track.lineno=648;4219 self['assertEquals']((typeof ($733=values).__array != 'undefined'?4220 ((typeof $733.__array[$734=$constant_int_2]) != 'undefined'?$733.__array[$734]:4221 $733.__getitem__($734)):4222 $733.__getitem__($constant_int_2)), $p['tuple']([$constant_int_3, $constant_int_4]));4223 $pyjs.track.lineno=649;4224 self['assertEquals']((typeof ($737=(typeof ($735=values).__array != 'undefined'?4225 ((typeof $735.__array[$736=$constant_int_3]) != 'undefined'?$735.__array[$736]:4226 $735.__getitem__($736)):4227 $735.__getitem__($constant_int_3))).__array != 'undefined'?4228 ((typeof $737.__array[$738='c']) != 'undefined'?$737.__array[$738]:4229 $737.__getitem__($738)):4230 $737.__getitem__('c')), $constant_int_3);4231 $pyjs.track.lineno=651;4232 values = (typeof varargs_kwargs2 == "undefined"?$m.varargs_kwargs2:varargs_kwargs2)($constant_int_1);4233 $pyjs.track.lineno=652;4234 self['assertEquals']((typeof ($739=values).__array != 'undefined'?4235 ((typeof $739.__array[$740=$constant_int_0]) != 'undefined'?$739.__array[$740]:4236 $739.__getitem__($740)):4237 $739.__getitem__($constant_int_0)), $constant_int_1);4238 $pyjs.track.lineno=653;4239 self['assertEquals']((typeof ($741=values).__array != 'undefined'?4240 ((typeof $741.__array[$742=$constant_int_1]) != 'undefined'?$741.__array[$742]:4241 $741.__getitem__($742)):4242 $741.__getitem__($constant_int_1)), $constant_int_3);4243 $pyjs.track.lineno=655;4244 values = (typeof varargs_kwargs2 == "undefined"?$m.varargs_kwargs2:varargs_kwargs2)($constant_int_1, $p['dict']([['a', $constant_int_1]]), $p['dict']([]));4245 $pyjs.track.lineno=656;4246 self['assertEquals']((typeof ($743=values).__array != 'undefined'?4247 ((typeof $743.__array[$744=$constant_int_0]) != 'undefined'?$743.__array[$744]:4248 $743.__getitem__($744)):4249 $743.__getitem__($constant_int_0)), $constant_int_1);4250 $pyjs.track.lineno=657;4251 self['assertEquals']((typeof ($747=(typeof ($745=values).__array != 'undefined'?4252 ((typeof $745.__array[$746=$constant_int_1]) != 'undefined'?$745.__array[$746]:4253 $745.__getitem__($746)):4254 $745.__getitem__($constant_int_1))).__array != 'undefined'?4255 ((typeof $747.__array[$748='a']) != 'undefined'?$747.__array[$748]:4256 $747.__getitem__($748)):4257 $747.__getitem__('a')), $constant_int_1);4258 $pyjs.track.lineno=659;4259 values = (typeof varargs_kwargs2 == "undefined"?$m.varargs_kwargs2:varargs_kwargs2)($constant_int_1, $p['dict']([['a', $constant_int_1]]));4260 $pyjs.track.lineno=660;4261 self['assertEquals']((typeof ($749=values).__array != 'undefined'?4262 ((typeof $749.__array[$750=$constant_int_0]) != 'undefined'?$749.__array[$750]:4263 $749.__getitem__($750)):4264 $749.__getitem__($constant_int_0)), $constant_int_1);4265 $pyjs.track.lineno=661;4266 var $pyjs__trackstack_size_1 = $pyjs.trackstack.length;4267 try {4268 $pyjs.track.lineno=662;4269 self['assertEquals']((typeof ($751=values).__array != 'undefined'?4270 ((typeof $751.__array[$752=$constant_int_1]) != 'undefined'?$751.__array[$752]:4271 $751.__getitem__($752)):4272 $751.__getitem__($constant_int_1)), $p['dict']([['a', $constant_int_1]]));4273 } catch($pyjs_try_err) {4274 $pyjs.__last_exception_stack__ = sys.save_exception_stack($pyjs__trackstack_size_1 - 1);4275 $pyjs.__active_exception_stack__ = null;4276 $pyjs_try_err = $p['_errorMapping']($pyjs_try_err);4277 var $pyjs_try_err_name = (typeof $pyjs_try_err.__name__ == 'undefined' ? $pyjs_try_err.name : $pyjs_try_err.__name__ );4278 $pyjs.__last_exception__ = {error: $pyjs_try_err, module: $m};4279 if ($pyjs.trackstack.length > $pyjs__trackstack_size_1) {4280 $pyjs.trackstack = $pyjs.trackstack.slice(0,$pyjs__trackstack_size_1);4281 $pyjs.track = $pyjs.trackstack.slice(-1)[0];4282 }4283 $pyjs.track.module='ArgsTest';4284 if (($pyjs_try_err_name == $p['TypeError'].__name__)||$p['_isinstance']($pyjs_try_err,$p['TypeError'])) {4285 e = $pyjs_try_err;4286 $pyjs.track.lineno=664;4287 self['fail']('Last arg in *args,**kwargs is dict problem');4288 } else { $pyjs.__active_exception_stack__ = $pyjs.__last_exception_stack__; $pyjs.__last_exception_stack__ = null; throw $pyjs_try_err; }4289 }4290 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);4291 return null;4292 }4293 , 1, [null,null,['self']]);4294 $cls_definition['testKwArgsRecurse'] = $method;4295 $pyjs.track.lineno=666;4296 $method = $pyjs__bind_method2('testKwArgsInherit', function() {4297 if (this.__is_instance__ === true) {4298 var self = this;4299 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);4300 } else {4301 var self = arguments[0];4302 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);4303 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);4304 }4305 if ($pyjs.options.arg_instance_type) {4306 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {4307 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {4308 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);4309 }4310 }4311 }4312 var kwa,c,$bool3,$pyjs_try_err,$bool6,$bool7,$bool4,$bool5;4313 $pyjs.track={module:'ArgsTest', lineno:666};$pyjs.trackstack.push($pyjs.track);4314 $pyjs.track.module='ArgsTest';4315 $pyjs.track.lineno=666;4316 $pyjs.track.lineno=668;4317 c = $pyjs_kwargs_call(null, (typeof KwArgs == "undefined"?$m.KwArgs:KwArgs), null, null, [{x:$constant_int_5, y:$constant_int_6}]);4318 $pyjs.track.lineno=669;4319 self['assertTrue']($p['hasattr'](c, 'kwargs'));4320 $pyjs.track.lineno=670;4321 kwa = $p['getattr'](c, 'kwargs', null);4322 $pyjs.track.lineno=671;4323 if ((($bool3=kwa) === null || $bool3 === false || $bool3 === 0 || $bool3 === '' ?4324 false :4325 (typeof $bool3=='object'?4326 (typeof $bool3.__nonzero__=='function'?4327 $bool3.__nonzero__() :4328 (typeof $bool3.__len__=='function'?4329 ($bool3.__len__()>0 ?4330 true :4331 false) :4332 true ) ) :4333 true ) )) {4334 $pyjs.track.lineno=672;4335 self['assertEquals'](kwa['get']('x'), $constant_int_5);4336 $pyjs.track.lineno=673;4337 self['assertEquals'](kwa['get']('y'), $constant_int_6);4338 $pyjs.track.lineno=674;4339 self['assertEquals'](kwa['get']('z'), $constant_int_7);4340 }4341 $pyjs.track.lineno=676;4342 var $pyjs__trackstack_size_1 = $pyjs.trackstack.length;4343 try {4344 $pyjs.track.lineno=677;4345 c = $pyjs_kwargs_call(null, (typeof Kwargs2 == "undefined"?$m.Kwargs2:Kwargs2), null, null, [{x:$constant_int_5, y:$constant_int_6}]);4346 $pyjs.track.lineno=678;4347 self['assertTrue']($p['hasattr'](c, 'kwargs'));4348 $pyjs.track.lineno=679;4349 kwa = $p['getattr'](c, 'kwargs', null);4350 $pyjs.track.lineno=680;4351 if ((($bool4=kwa) === null || $bool4 === false || $bool4 === 0 || $bool4 === '' ?4352 false :4353 (typeof $bool4=='object'?4354 (typeof $bool4.__nonzero__=='function'?4355 $bool4.__nonzero__() :4356 (typeof $bool4.__len__=='function'?4357 ($bool4.__len__()>0 ?4358 true :4359 false) :4360 true ) ) :4361 true ) )) {4362 $pyjs.track.lineno=681;4363 self['assertEquals'](kwa['get']('x'), $constant_int_5);4364 $pyjs.track.lineno=682;4365 self['assertEquals'](kwa['get']('y'), $constant_int_6);4366 $pyjs.track.lineno=683;4367 self['assertEquals'](kwa['get']('z'), $constant_int_7);4368 }4369 } catch($pyjs_try_err) {4370 $pyjs.__last_exception_stack__ = sys.save_exception_stack($pyjs__trackstack_size_1 - 1);4371 $pyjs.__active_exception_stack__ = null;4372 $pyjs_try_err = $p['_errorMapping']($pyjs_try_err);4373 var $pyjs_try_err_name = (typeof $pyjs_try_err.__name__ == 'undefined' ? $pyjs_try_err.name : $pyjs_try_err.__name__ );4374 $pyjs.__last_exception__ = {error: $pyjs_try_err, module: $m};4375 if ($pyjs.trackstack.length > $pyjs__trackstack_size_1) {4376 $pyjs.trackstack = $pyjs.trackstack.slice(0,$pyjs__trackstack_size_1);4377 $pyjs.track = $pyjs.trackstack.slice(-1)[0];4378 }4379 $pyjs.track.module='ArgsTest';4380 if (true) {4381 $pyjs.track.lineno=685;4382 self['assertTrue'](false, 'runtime error in kwargs, needs investigating');4383 }4384 }4385 $pyjs.track.lineno=687;4386 $pyjs_kwargs_call(c, 'set_kwargs', null, null, [{x:$constant_int_5, y:$constant_int_6}]);4387 $pyjs.track.lineno=688;4388 self['assertTrue']($p['hasattr'](c, 'kwargs'));4389 $pyjs.track.lineno=689;4390 kwa = $p['getattr'](c, 'kwargs', null);4391 $pyjs.track.lineno=690;4392 if ((($bool5=kwa) === null || $bool5 === false || $bool5 === 0 || $bool5 === '' ?4393 false :4394 (typeof $bool5=='object'?4395 (typeof $bool5.__nonzero__=='function'?4396 $bool5.__nonzero__() :4397 (typeof $bool5.__len__=='function'?4398 ($bool5.__len__()>0 ?4399 true :4400 false) :4401 true ) ) :4402 true ) )) {4403 $pyjs.track.lineno=691;4404 self['assertEquals'](kwa['get']('x'), $constant_int_5);4405 $pyjs.track.lineno=692;4406 self['assertEquals'](kwa['get']('y'), $constant_int_6);4407 $pyjs.track.lineno=693;4408 self['assertEquals'](kwa['get']('z'), $constant_int_8);4409 }4410 $pyjs.track.lineno=696;4411 $pyjs_kwargs_call(c, 'set_kwargs2', null, null, [{x:$constant_int_5, y:$constant_int_6}]);4412 $pyjs.track.lineno=697;4413 self['assertTrue']($p['hasattr'](c, 'kwargs'));4414 $pyjs.track.lineno=698;4415 kwa = $p['getattr'](c, 'kwargs', null);4416 $pyjs.track.lineno=699;4417 if ((($bool6=kwa) === null || $bool6 === false || $bool6 === 0 || $bool6 === '' ?4418 false :4419 (typeof $bool6=='object'?4420 (typeof $bool6.__nonzero__=='function'?4421 $bool6.__nonzero__() :4422 (typeof $bool6.__len__=='function'?4423 ($bool6.__len__()>0 ?4424 true :4425 false) :4426 true ) ) :4427 true ) )) {4428 $pyjs.track.lineno=700;4429 self['assertEquals'](kwa['get']('x'), $constant_int_5);4430 $pyjs.track.lineno=701;4431 self['assertEquals'](kwa['get']('y'), $constant_int_6);4432 $pyjs.track.lineno=702;4433 self['assertEquals'](kwa['get']('z'), $constant_int_8);4434 }4435 $pyjs.track.lineno=705;4436 $pyjs_kwargs_call(c, 'set_kwargs3', null, null, [{x:$constant_int_5, y:$constant_int_6}]);4437 $pyjs.track.lineno=706;4438 self['assertTrue']($p['hasattr'](c, 'kwargs'));4439 $pyjs.track.lineno=707;4440 kwa = $p['getattr'](c, 'kwargs', null);4441 $pyjs.track.lineno=708;4442 if ((($bool7=kwa) === null || $bool7 === false || $bool7 === 0 || $bool7 === '' ?4443 false :4444 (typeof $bool7=='object'?4445 (typeof $bool7.__nonzero__=='function'?4446 $bool7.__nonzero__() :4447 (typeof $bool7.__len__=='function'?4448 ($bool7.__len__()>0 ?4449 true :4450 false) :4451 true ) ) :4452 true ) )) {4453 $pyjs.track.lineno=709;4454 self['assertEquals'](kwa['get']('x'), $constant_int_5);4455 $pyjs.track.lineno=710;4456 self['assertEquals'](kwa['get']('y'), $constant_int_6);4457 $pyjs.track.lineno=711;4458 self['assertEquals'](kwa['get']('z'), $constant_int_8);4459 }4460 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);4461 return null;4462 }4463 , 1, [null,null,['self']]);4464 $cls_definition['testKwArgsInherit'] = $method;4465 $pyjs.track.lineno=713;4466 $method = $pyjs__bind_method2('testKwArgsNameMapping', function() {4467 if (this.__is_instance__ === true) {4468 var self = this;4469 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);4470 } else {4471 var self = arguments[0];4472 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);4473 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);4474 }4475 if ($pyjs.options.arg_instance_type) {4476 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {4477 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {4478 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);4479 }4480 }4481 }4482 var kwargs_out,fn,kwargs;4483 $pyjs.track={module:'ArgsTest', lineno:713};$pyjs.trackstack.push($pyjs.track);4484 $pyjs.track.module='ArgsTest';4485 $pyjs.track.lineno=713;4486 $pyjs.track.lineno=714;4487 kwargs = $pyjs_kwargs_call(null, $p['dict'], null, null, [{$$comment:'Comment', name:'Name'}]);4488 $pyjs.track.lineno=715;4489 fn = function($$comment, name) {4490 if ($pyjs.options.arg_count && (arguments.length < 0 || arguments.length > 2)) $pyjs__exception_func_param(arguments.callee.__name__, 0, 2, arguments.length);4491 if (typeof $$comment == 'undefined') $$comment=arguments.callee.__args__[2][1];4492 if (typeof name == 'undefined') name=arguments.callee.__args__[3][1];4493 var $$comment;4494 $pyjs.track={module:'ArgsTest',lineno:715};$pyjs.trackstack.push($pyjs.track);4495 $pyjs.track.module='ArgsTest';4496 $pyjs.track.lineno=715;4497 $pyjs.track.lineno=716;4498 $pyjs.track.lineno=716;4499 var $pyjs__ret = $pyjs_kwargs_call(null, $p['dict'], null, null, [{$$comment:$$comment, name:name}]);4500 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);4501 return $pyjs__ret;4502 };4503 fn.__name__ = 'fn';4504 fn.__bind_type__ = 0;4505 fn.__args__ = [null,null,['$$comment', null],['name', null]];4506 $pyjs.track.lineno=717;4507 kwargs_out = $pyjs_kwargs_call(null, fn, null, kwargs, [{}]);4508 $pyjs.track.lineno=718;4509 self['assertEquals'](kwargs, kwargs_out);4510 $pyjs.track.lineno=719;4511 kwargs = $p['dict']([['comment', 'Comment'], ['name', 'Name']]);4512 $pyjs.track.lineno=720;4513 kwargs_out = $pyjs_kwargs_call(null, fn, null, kwargs, [{}]);4514 $pyjs.track.lineno=721;4515 self['assertEquals'](kwargs, kwargs_out);4516 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);4517 return null;4518 }4519 , 1, [null,null,['self']]);4520 $cls_definition['testKwArgsNameMapping'] = $method;4521 $pyjs.track.lineno=723;4522 $method = $pyjs__bind_method2('testLookupOrder', function() {4523 if (this.__is_instance__ === true) {4524 var self = this;4525 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);4526 } else {4527 var self = arguments[0];4528 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);4529 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);4530 }4531 if ($pyjs.options.arg_instance_type) {4532 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {4533 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {4534 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);4535 }4536 }4537 }4538 var A,fn;4539 $pyjs.track={module:'ArgsTest', lineno:723};$pyjs.trackstack.push($pyjs.track);4540 $pyjs.track.module='ArgsTest';4541 $pyjs.track.lineno=723;4542 $pyjs.track.lineno=724;4543 fn = function(fint) {4544 if ($pyjs.options.arg_count && (arguments.length < 0 || arguments.length > 1)) $pyjs__exception_func_param(arguments.callee.__name__, 0, 1, arguments.length);4545 if (typeof fint == 'undefined') fint=arguments.callee.__args__[2][1];4546 $pyjs.track={module:'ArgsTest',lineno:724};$pyjs.trackstack.push($pyjs.track);4547 $pyjs.track.module='ArgsTest';4548 $pyjs.track.lineno=724;4549 $pyjs.track.lineno=725;4550 $pyjs.track.lineno=725;4551 var $pyjs__ret = fint(1.2);4552 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);4553 return $pyjs__ret;4554 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);4555 return null;4556 };4557 fn.__name__ = 'fn';4558 fn.__bind_type__ = 0;4559 fn.__args__ = [null,null,['fint', $p['int']]];4560 $pyjs.track.lineno=726;4561 A = (function(){4562 var $cls_definition = new Object();4563 var $method;4564 $cls_definition.__module__ = 'ArgsTest';4565 $cls_definition.__md5__ = '3614a9deaeb2e27c74663ba0baa1cac7';4566 $pyjs.track.lineno=727;4567 $method = $pyjs__bind_method2('fn', function(fint) {4568 if (this.__is_instance__ === true) {4569 var self = this;4570 if ($pyjs.options.arg_count && (arguments.length < 0 || arguments.length > 1)) $pyjs__exception_func_param(arguments.callee.__name__, 1, 2, arguments.length+1);4571 } else {4572 var self = arguments[0];4573 fint = arguments[1];4574 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);4575 if ($pyjs.options.arg_count && (arguments.length < 1 || arguments.length > 2)) $pyjs__exception_func_param(arguments.callee.__name__, 1, 2, arguments.length);4576 }4577 if ($pyjs.options.arg_instance_type) {4578 if (self.prototype.__md5__ !== '3614a9deaeb2e27c74663ba0baa1cac7') {4579 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {4580 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);4581 }4582 }4583 }4584 if (typeof fint == 'undefined') fint=arguments.callee.__args__[3][1];4585 $pyjs.track={module:'ArgsTest', lineno:727};$pyjs.trackstack.push($pyjs.track);4586 $pyjs.track.module='ArgsTest';4587 $pyjs.track.lineno=727;4588 $pyjs.track.lineno=728;4589 $pyjs.track.lineno=728;4590 var $pyjs__ret = fint(1.2);4591 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);4592 return $pyjs__ret;4593 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);4594 return null;4595 }4596 , 1, [null,null,['self'],['fint', $p['int']]]);4597 $cls_definition['fn'] = $method;4598 $pyjs.track.lineno=726;4599 var $bases = new Array(pyjslib.object);4600 var $data = $p['dict']();4601 for (var $item in $cls_definition) { $data.__setitem__($item, $cls_definition[$item]); }4602 return $p['_create_class']('A', $p['tuple']($bases), $data);4603 })();4604 $pyjs.track.lineno=729;4605 self['assertEqual'](fn(), $constant_int_1);4606 $pyjs.track.lineno=730;4607 self['assertEqual'](A()['fn'](), $constant_int_1);4608 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);4609 return null;4610 }4611 , 1, [null,null,['self']]);4612 $cls_definition['testLookupOrder'] = $method;4613 $pyjs.track.lineno=732;4614 $method = $pyjs__bind_method2('testArgIsModuleName', function() {4615 if (this.__is_instance__ === true) {4616 var self = this;4617 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);4618 } else {4619 var self = arguments[0];4620 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);4621 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);4622 }4623 if ($pyjs.options.arg_instance_type) {4624 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {4625 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {4626 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);4627 }4628 }4629 }4630 var fn;4631 $pyjs.track={module:'ArgsTest', lineno:732};$pyjs.trackstack.push($pyjs.track);4632 $pyjs.track.module='ArgsTest';4633 $pyjs.track.lineno=732;4634 $pyjs.track.lineno=733;4635 fn = function(ArgsTest) {4636 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);4637 $pyjs.track={module:'ArgsTest',lineno:733};$pyjs.trackstack.push($pyjs.track);4638 $pyjs.track.module='ArgsTest';4639 $pyjs.track.lineno=733;4640 $pyjs.track.lineno=734;4641 $pyjs.track.lineno=734;4642 var $pyjs__ret = (typeof foo == "undefined"?$m.foo:foo)(ArgsTest, $constant_int_2, $constant_int_3);4643 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);4644 return $pyjs__ret;4645 };4646 fn.__name__ = 'fn';4647 fn.__bind_type__ = 0;4648 fn.__args__ = [null,null,['ArgsTest']];4649 $pyjs.track.lineno=735;4650 self['assertEqual']((typeof __name__ == "undefined"?$m.__name__:__name__), 'ArgsTest', 'Argument to fn must be equal to module name');4651 $pyjs.track.lineno=736;4652 self['assertEqual'](fn('foo'), $p['list'](['foo', $constant_int_2, $constant_int_3]));4653 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);4654 return null;4655 }4656 , 1, [null,null,['self']]);4657 $cls_definition['testArgIsModuleName'] = $method;4658 $pyjs.track.lineno=738;4659 $method = $pyjs__bind_method2('testGetattr', function() {4660 if (this.__is_instance__ === true) {4661 var self = this;4662 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);4663 } else {4664 var self = arguments[0];4665 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);4666 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);4667 }4668 if ($pyjs.options.arg_instance_type) {4669 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {4670 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {4671 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);4672 }4673 }4674 }4675 var $770,$758,$759,$753,$754,$755,$756,$757,instance,$pyjs_try_err,foo,$761,$760,$763,$762,$765,$764,$767,$766,$769,$768,values;4676 $pyjs.track={module:'ArgsTest', lineno:738};$pyjs.trackstack.push($pyjs.track);4677 $pyjs.track.module='ArgsTest';4678 $pyjs.track.lineno=738;4679 $pyjs.track.lineno=739;4680 instance = (typeof ArgsTestClass == "undefined"?$m.ArgsTestClass:ArgsTestClass)();4681 $pyjs.track.lineno=740;4682 foo = $p['getattr'](instance, 'foo');4683 $pyjs.track.lineno=742;4684 values = foo($constant_int_1, $constant_int_2, $constant_int_3);4685 $pyjs.track.lineno=743;4686 self['assertEquals']((typeof ($753=values).__array != 'undefined'?4687 ((typeof $753.__array[$754=$constant_int_0]) != 'undefined'?$753.__array[$754]:4688 $753.__getitem__($754)):4689 $753.__getitem__($constant_int_0)), $constant_int_1);4690 $pyjs.track.lineno=744;4691 self['assertEquals']((typeof ($755=values).__array != 'undefined'?4692 ((typeof $755.__array[$756=$constant_int_1]) != 'undefined'?$755.__array[$756]:4693 $755.__getitem__($756)):4694 $755.__getitem__($constant_int_1)), $constant_int_2);4695 $pyjs.track.lineno=745;4696 self['assertEquals']((typeof ($757=values).__array != 'undefined'?4697 ((typeof $757.__array[$758=$constant_int_2]) != 'undefined'?$757.__array[$758]:4698 $757.__getitem__($758)):4699 $757.__getitem__($constant_int_2)), $constant_int_3);4700 $pyjs.track.lineno=747;4701 values = $pyjs_kwargs_call(null, foo, $p['tuple']([$constant_int_1, $constant_int_2, $constant_int_3]), null, [{}]);4702 $pyjs.track.lineno=748;4703 self['assertEquals']((typeof ($759=values).__array != 'undefined'?4704 ((typeof $759.__array[$760=$constant_int_0]) != 'undefined'?$759.__array[$760]:4705 $759.__getitem__($760)):4706 $759.__getitem__($constant_int_0)), $constant_int_1);4707 $pyjs.track.lineno=749;4708 self['assertEquals']((typeof ($761=values).__array != 'undefined'?4709 ((typeof $761.__array[$762=$constant_int_1]) != 'undefined'?$761.__array[$762]:4710 $761.__getitem__($762)):4711 $761.__getitem__($constant_int_1)), $constant_int_2);4712 $pyjs.track.lineno=750;4713 self['assertEquals']((typeof ($763=values).__array != 'undefined'?4714 ((typeof $763.__array[$764=$constant_int_2]) != 'undefined'?$763.__array[$764]:4715 $763.__getitem__($764)):4716 $763.__getitem__($constant_int_2)), $constant_int_3);4717 $pyjs.track.lineno=752;4718 var $pyjs__trackstack_size_1 = $pyjs.trackstack.length;4719 try {4720 $pyjs.track.lineno=753;4721 values = $pyjs_kwargs_call(null, foo, $p['tuple']([$constant_int_1, $constant_int_2]), $pyjs_kwargs_call(null, $p['dict'], null, null, [{c:$constant_int_3}]), [{}]);4722 $pyjs.track.lineno=754;4723 self['assertEquals']((typeof ($765=values).__array != 'undefined'?4724 ((typeof $765.__array[$766=$constant_int_0]) != 'undefined'?$765.__array[$766]:4725 $765.__getitem__($766)):4726 $765.__getitem__($constant_int_0)), $constant_int_1);4727 $pyjs.track.lineno=755;4728 self['assertEquals']((typeof ($767=values).__array != 'undefined'?4729 ((typeof $767.__array[$768=$constant_int_1]) != 'undefined'?$767.__array[$768]:4730 $767.__getitem__($768)):4731 $767.__getitem__($constant_int_1)), $constant_int_2);4732 $pyjs.track.lineno=756;4733 self['assertEquals']((typeof ($769=values).__array != 'undefined'?4734 ((typeof $769.__array[$770=$constant_int_2]) != 'undefined'?$769.__array[$770]:4735 $769.__getitem__($770)):4736 $769.__getitem__($constant_int_2)), $constant_int_3);4737 } catch($pyjs_try_err) {4738 $pyjs.__last_exception_stack__ = sys.save_exception_stack($pyjs__trackstack_size_1 - 1);4739 $pyjs.__active_exception_stack__ = null;4740 $pyjs_try_err = $p['_errorMapping']($pyjs_try_err);4741 var $pyjs_try_err_name = (typeof $pyjs_try_err.__name__ == 'undefined' ? $pyjs_try_err.name : $pyjs_try_err.__name__ );4742 $pyjs.__last_exception__ = {error: $pyjs_try_err, module: $m};4743 if ($pyjs.trackstack.length > $pyjs__trackstack_size_1) {4744 $pyjs.trackstack = $pyjs.trackstack.slice(0,$pyjs__trackstack_size_1);4745 $pyjs.track = $pyjs.trackstack.slice(-1)[0];4746 }4747 $pyjs.track.module='ArgsTest';4748 if (($pyjs_try_err_name == $p['TypeError'].__name__)||$p['_isinstance']($pyjs_try_err,$p['TypeError'])) {4749 $pyjs.track.lineno=758;4750 self['fail']('foo() takes exactly 4 arguments (5 given), bug #503');4751 } else { $pyjs.__active_exception_stack__ = $pyjs.__last_exception_stack__; $pyjs.__last_exception_stack__ = null; throw $pyjs_try_err; }4752 }4753 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);4754 return null;4755 }4756 , 1, [null,null,['self']]);4757 $cls_definition['testGetattr'] = $method;4758 $pyjs.track.lineno=760;4759 $method = $pyjs__bind_method2('testArgsUnpack', function() {4760 if (this.__is_instance__ === true) {4761 var self = this;4762 if ($pyjs.options.arg_count && arguments.length != 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length+1);4763 } else {4764 var self = arguments[0];4765 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);4766 if ($pyjs.options.arg_count && arguments.length != 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);4767 }4768 if ($pyjs.options.arg_instance_type) {4769 if (self.prototype.__md5__ !== '912c959ea80c5980444629f7cf5ab5ed') {4770 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {4771 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);4772 }4773 }4774 }4775 var $pyjs_try_err,func;4776 $pyjs.track={module:'ArgsTest', lineno:760};$pyjs.trackstack.push($pyjs.track);4777 $pyjs.track.module='ArgsTest';4778 $pyjs.track.lineno=760;4779 $pyjs.track.lineno=761;4780 func = function(a, b, c, d) {4781 if ($pyjs.options.arg_count && arguments.length != 4) $pyjs__exception_func_param(arguments.callee.__name__, 4, 4, arguments.length);4782 var $add6,$add7,$add5,$add10,$add8,$add9;4783 $pyjs.track={module:'ArgsTest',lineno:761};$pyjs.trackstack.push($pyjs.track);4784 $pyjs.track.module='ArgsTest';4785 $pyjs.track.lineno=761;4786 $pyjs.track.lineno=762;4787 $pyjs.track.lineno=762;4788 var $pyjs__ret = (typeof ($add9=(typeof ($add7=(typeof ($add5=a)==typeof ($add6=b) && (typeof $add5=='number'||typeof $add5=='string')?4789 $add5+$add6:4790 $p['op_add']($add5,$add6)))==typeof ($add8=c) && (typeof $add7=='number'||typeof $add7=='string')?4791 $add7+$add8:4792 $p['op_add']($add7,$add8)))==typeof ($add10=d) && (typeof $add9=='number'||typeof $add9=='string')?4793 $add9+$add10:4794 $p['op_add']($add9,$add10));4795 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);4796 return $pyjs__ret;4797 };4798 func.__name__ = 'func';4799 func.__bind_type__ = 0;4800 func.__args__ = [null,null,['a'],['b'],['c'],['d']];4801 $pyjs.track.lineno=763;4802 var $pyjs__trackstack_size_1 = $pyjs.trackstack.length;4803 try {4804 $pyjs.track.lineno=764;4805 self['assertEqual'](func($constant_int_1, $p['tuple']([$constant_int_2, $constant_int_3]), $constant_int_4), $constant_int_10, 'Function args unpacking not supported, #527');4806 } catch($pyjs_try_err) {4807 $pyjs.__last_exception_stack__ = sys.save_exception_stack($pyjs__trackstack_size_1 - 1);4808 $pyjs.__active_exception_stack__ = null;4809 $pyjs_try_err = $p['_errorMapping']($pyjs_try_err);4810 var $pyjs_try_err_name = (typeof $pyjs_try_err.__name__ == 'undefined' ? $pyjs_try_err.name : $pyjs_try_err.__name__ );4811 $pyjs.__last_exception__ = {error: $pyjs_try_err, module: $m};4812 if ($pyjs.trackstack.length > $pyjs__trackstack_size_1) {4813 $pyjs.trackstack = $pyjs.trackstack.slice(0,$pyjs__trackstack_size_1);4814 $pyjs.track = $pyjs.trackstack.slice(-1)[0];4815 }4816 $pyjs.track.module='ArgsTest';4817 if (true) {4818 $pyjs.track.lineno=766;4819 self['fail']('Bug #527 Function args unpacking not supported');4820 }4821 }4822 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);4823 return null;4824 }4825 , 1, [null,null,['self']]);4826 $cls_definition['testArgsUnpack'] = $method;4827 $pyjs.track.lineno=9;4828 var $bases = new Array($m['UnitTest']);4829 var $data = $p['dict']();4830 for (var $item in $cls_definition) { $data.__setitem__($item, $cls_definition[$item]); }4831 return $p['_create_class']('ArgsTest', $p['tuple']($bases), $data);4832 })();4833 $pyjs.track.lineno=769;4834 $m['foo'] = function(a, b, c) {4835 if ($pyjs.options.arg_count && arguments.length != 3) $pyjs__exception_func_param(arguments.callee.__name__, 3, 3, arguments.length);4836 $pyjs.track={module:'ArgsTest',lineno:769};$pyjs.trackstack.push($pyjs.track);4837 $pyjs.track.module='ArgsTest';4838 $pyjs.track.lineno=769;4839 $pyjs.track.lineno=770;4840 $pyjs.track.lineno=770;4841 var $pyjs__ret = $p['list']([a, b, c]);4842 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);4843 return $pyjs__ret;4844 };4845 $m['foo'].__name__ = 'foo';4846 $m['foo'].__bind_type__ = 0;4847 $m['foo'].__args__ = [null,null,['a'],['b'],['c']];4848 $pyjs.track.lineno=772;4849 $m['foo2'] = function(a, b, c) {4850 if ($pyjs.options.arg_count && (arguments.length < 0 || arguments.length > 3)) $pyjs__exception_func_param(arguments.callee.__name__, 0, 3, arguments.length);4851 if (typeof a == 'undefined') a=arguments.callee.__args__[2][1];4852 if (typeof b == 'undefined') b=arguments.callee.__args__[3][1];4853 if (typeof c == 'undefined') c=arguments.callee.__args__[4][1];4854 $pyjs.track={module:'ArgsTest',lineno:772};$pyjs.trackstack.push($pyjs.track);4855 $pyjs.track.module='ArgsTest';4856 $pyjs.track.lineno=772;4857 $pyjs.track.lineno=773;4858 $pyjs.track.lineno=773;4859 var $pyjs__ret = $p['list']([a, b, c]);4860 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);4861 return $pyjs__ret;4862 };4863 $m['foo2'].__name__ = 'foo2';4864 $m['foo2'].__bind_type__ = 0;4865 $m['foo2'].__args__ = [null,null,['a', null],['b', null],['c', null]];4866 $pyjs.track.lineno=775;4867 $m['foo3'] = function(a, b, c) {4868 if ($pyjs.options.arg_count && (arguments.length < 0 || arguments.length > 3)) $pyjs__exception_func_param(arguments.callee.__name__, 0, 3, arguments.length);4869 if (typeof a == 'undefined') a=arguments.callee.__args__[2][1];4870 if (typeof b == 'undefined') b=arguments.callee.__args__[3][1];4871 if (typeof c == 'undefined') c=arguments.callee.__args__[4][1];4872 $pyjs.track={module:'ArgsTest',lineno:775};$pyjs.trackstack.push($pyjs.track);4873 $pyjs.track.module='ArgsTest';4874 $pyjs.track.lineno=775;4875 $pyjs.track.lineno=776;4876 $pyjs.track.lineno=776;4877 var $pyjs__ret = $p['list']([a, b, c]);4878 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);4879 return $pyjs__ret;4880 };4881 $m['foo3'].__name__ = 'foo3';4882 $m['foo3'].__bind_type__ = 0;4883 $m['foo3'].__args__ = [null,null,['a', $constant_int_1],['b', $constant_int_2],['c', $constant_int_3]];4884 $pyjs.track.lineno=778;4885 $m['foo4'] = function(a, b, c) {4886 if ($pyjs.options.arg_count && arguments.length < 3) $pyjs__exception_func_param(arguments.callee.__name__, 3, null, arguments.length);4887 var args = $p['tuple']($pyjs_array_slice.call(arguments,3,arguments.length));4888 $pyjs.track={module:'ArgsTest',lineno:778};$pyjs.trackstack.push($pyjs.track);4889 $pyjs.track.module='ArgsTest';4890 $pyjs.track.lineno=778;4891 $pyjs.track.lineno=779;4892 $pyjs.track.lineno=779;4893 var $pyjs__ret = $p['tuple']([a, b, c, args]);4894 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);4895 return $pyjs__ret;4896 };4897 $m['foo4'].__name__ = 'foo4';4898 $m['foo4'].__bind_type__ = 0;4899 $m['foo4'].__args__ = ['args',null,['a'],['b'],['c']];4900 $pyjs.track.lineno=781;4901 $m['foo5'] = function(a, b, c) {4902 if ($pyjs.options.arg_count && (arguments.length < 3 || arguments.length > 4)) $pyjs__exception_func_param(arguments.callee.__name__, 3, 3, arguments.length);4903 var kwargs = arguments.length >= 4 ? arguments[arguments.length-1] : arguments[arguments.length];4904 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {4905 kwargs = arguments[arguments.length+1];4906 } else {4907 delete kwargs['$pyjs_is_kwarg'];4908 }4909 if (typeof kwargs == 'undefined') {4910 kwargs = $p['__empty_dict']();4911 if (typeof c != 'undefined') {4912 if (c !== null && typeof c['$pyjs_is_kwarg'] != 'undefined') {4913 kwargs = c;4914 c = arguments[3];4915 }4916 } else if (typeof b != 'undefined') {4917 if (b !== null && typeof b['$pyjs_is_kwarg'] != 'undefined') {4918 kwargs = b;4919 b = arguments[3];4920 }4921 } else if (typeof a != 'undefined') {4922 if (a !== null && typeof a['$pyjs_is_kwarg'] != 'undefined') {4923 kwargs = a;4924 a = arguments[3];4925 }4926 } else {4927 }4928 }4929 $pyjs.track={module:'ArgsTest',lineno:781};$pyjs.trackstack.push($pyjs.track);4930 $pyjs.track.module='ArgsTest';4931 $pyjs.track.lineno=781;4932 $pyjs.track.lineno=782;4933 $pyjs.track.lineno=782;4934 var $pyjs__ret = $p['tuple']([a, b, c, kwargs]);4935 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);4936 return $pyjs__ret;4937 };4938 $m['foo5'].__name__ = 'foo5';4939 $m['foo5'].__bind_type__ = 0;4940 $m['foo5'].__args__ = [null,['kwargs'],['a'],['b'],['c']];4941 $pyjs.track.lineno=784;4942 $m['foo6'] = function(a, b, c) {4943 if ($pyjs.options.arg_count && arguments.length < 3) $pyjs__exception_func_param(arguments.callee.__name__, 3, null, arguments.length);4944 var args = $p['tuple']($pyjs_array_slice.call(arguments,3,arguments.length-1));4945 var kwargs = arguments.length >= 4 ? arguments[arguments.length-1] : arguments[arguments.length];4946 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {4947 if (typeof kwargs != 'undefined') args.__array.push(kwargs);4948 kwargs = arguments[arguments.length+1];4949 } else {4950 delete kwargs['$pyjs_is_kwarg'];4951 }4952 if (typeof kwargs == 'undefined') {4953 kwargs = $p['__empty_dict']();4954 if (typeof c != 'undefined') {4955 if (c !== null && typeof c['$pyjs_is_kwarg'] != 'undefined') {4956 kwargs = c;4957 c = arguments[3];4958 }4959 } else if (typeof b != 'undefined') {4960 if (b !== null && typeof b['$pyjs_is_kwarg'] != 'undefined') {4961 kwargs = b;4962 b = arguments[3];4963 }4964 } else if (typeof a != 'undefined') {4965 if (a !== null && typeof a['$pyjs_is_kwarg'] != 'undefined') {4966 kwargs = a;4967 a = arguments[3];4968 }4969 } else {4970 }4971 }4972 $pyjs.track={module:'ArgsTest',lineno:784};$pyjs.trackstack.push($pyjs.track);4973 $pyjs.track.module='ArgsTest';4974 $pyjs.track.lineno=784;4975 $pyjs.track.lineno=785;4976 $pyjs.track.lineno=785;4977 var $pyjs__ret = $p['tuple']([a, b, c, args, kwargs]);4978 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);4979 return $pyjs__ret;4980 };4981 $m['foo6'].__name__ = 'foo6';4982 $m['foo6'].__bind_type__ = 0;4983 $m['foo6'].__args__ = ['args',['kwargs'],['a'],['b'],['c']];4984 $pyjs.track.lineno=787;4985 $m['foo7'] = function(a) {4986 if ($pyjs.options.arg_count && arguments.length < 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, null, arguments.length);4987 var args = $p['tuple']($pyjs_array_slice.call(arguments,1,arguments.length-1));4988 var kwargs = arguments.length >= 2 ? arguments[arguments.length-1] : arguments[arguments.length];4989 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {4990 if (typeof kwargs != 'undefined') args.__array.push(kwargs);4991 kwargs = arguments[arguments.length+1];4992 } else {4993 delete kwargs['$pyjs_is_kwarg'];4994 }4995 if (typeof kwargs == 'undefined') {4996 kwargs = $p['__empty_dict']();4997 if (typeof a != 'undefined') {4998 if (a !== null && typeof a['$pyjs_is_kwarg'] != 'undefined') {4999 kwargs = a;5000 a = arguments[1];5001 }5002 } else {5003 }5004 }5005 $pyjs.track={module:'ArgsTest',lineno:787};$pyjs.trackstack.push($pyjs.track);5006 $pyjs.track.module='ArgsTest';5007 $pyjs.track.lineno=787;5008 $pyjs.track.lineno=788;5009 $pyjs.track.lineno=788;5010 var $pyjs__ret = $p['tuple']([a, args, kwargs]);5011 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);5012 return $pyjs__ret;5013 };5014 $m['foo7'].__name__ = 'foo7';5015 $m['foo7'].__bind_type__ = 0;5016 $m['foo7'].__args__ = ['args',['kwargs'],['a']];5017 $pyjs.track.lineno=790;5018 $m['foo8'] = function(a) {5019 if ($pyjs.options.arg_count && (arguments.length < 1 || arguments.length > 2)) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);5020 var kwargs = arguments.length >= 2 ? arguments[arguments.length-1] : arguments[arguments.length];5021 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {5022 kwargs = arguments[arguments.length+1];5023 } else {5024 delete kwargs['$pyjs_is_kwarg'];5025 }5026 if (typeof kwargs == 'undefined') {5027 kwargs = $p['__empty_dict']();5028 if (typeof a != 'undefined') {5029 if (a !== null && typeof a['$pyjs_is_kwarg'] != 'undefined') {5030 kwargs = a;5031 a = arguments[1];5032 }5033 } else {5034 }5035 }5036 $pyjs.track={module:'ArgsTest',lineno:790};$pyjs.trackstack.push($pyjs.track);5037 $pyjs.track.module='ArgsTest';5038 $pyjs.track.lineno=790;5039 $pyjs.track.lineno=791;5040 $pyjs.track.lineno=791;5041 var $pyjs__ret = $p['tuple']([a, kwargs]);5042 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);5043 return $pyjs__ret;5044 };5045 $m['foo8'].__name__ = 'foo8';5046 $m['foo8'].__bind_type__ = 0;5047 $m['foo8'].__args__ = [null,['kwargs'],['a']];5048 $pyjs.track.lineno=793;5049 $m['ArgsTestClass_foo'] = (function(){5050 var $cls_definition = new Object();5051 var $method;5052 $cls_definition.__module__ = 'ArgsTest';5053 $cls_definition.__md5__ = '6c00eb81763e8c241933ddc5a6ade95f';5054 $pyjs.track.lineno=794;5055 $method = $pyjs__bind_method2('__init__', function(a, b, c) {5056 if (this.__is_instance__ === true) {5057 var self = this;5058 if ($pyjs.options.arg_count && arguments.length != 3) $pyjs__exception_func_param(arguments.callee.__name__, 4, 4, arguments.length+1);5059 } else {5060 var self = arguments[0];5061 a = arguments[1];5062 b = arguments[2];5063 c = arguments[3];5064 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);5065 if ($pyjs.options.arg_count && arguments.length != 4) $pyjs__exception_func_param(arguments.callee.__name__, 4, 4, arguments.length);5066 }5067 if ($pyjs.options.arg_instance_type) {5068 if (self.prototype.__md5__ !== '6c00eb81763e8c241933ddc5a6ade95f') {5069 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {5070 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);5071 }5072 }5073 }5074 $pyjs.track={module:'ArgsTest', lineno:794};$pyjs.trackstack.push($pyjs.track);5075 $pyjs.track.module='ArgsTest';5076 $pyjs.track.lineno=794;5077 $pyjs.track.lineno=795;5078 self.__is_instance__ && typeof self.__setattr__ == 'function' ? self.__setattr__('x', $p['list']([a, b, c])) : $p['setattr'](self, 'x', $p['list']([a, b, c])); 5079 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);5080 return null;5081 }5082 , 1, [null,null,['self'],['a'],['b'],['c']]);5083 $cls_definition['__init__'] = $method;5084 $pyjs.track.lineno=793;5085 var $bases = new Array(pyjslib.object);5086 var $data = $p['dict']();5087 for (var $item in $cls_definition) { $data.__setitem__($item, $cls_definition[$item]); }5088 return $p['_create_class']('ArgsTestClass_foo', $p['tuple']($bases), $data);5089 })();5090 $pyjs.track.lineno=797;5091 $m['ArgsTestClass_foo2'] = (function(){5092 var $cls_definition = new Object();5093 var $method;5094 $cls_definition.__module__ = 'ArgsTest';5095 $cls_definition.__md5__ = '6654669ac9d9684e1e4a19a7b32684b6';5096 $pyjs.track.lineno=798;5097 $method = $pyjs__bind_method2('__init__', function(a, b, c) {5098 if (this.__is_instance__ === true) {5099 var self = this;5100 if ($pyjs.options.arg_count && (arguments.length < 0 || arguments.length > 3)) $pyjs__exception_func_param(arguments.callee.__name__, 1, 4, arguments.length+1);5101 } else {5102 var self = arguments[0];5103 a = arguments[1];5104 b = arguments[2];5105 c = arguments[3];5106 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);5107 if ($pyjs.options.arg_count && (arguments.length < 1 || arguments.length > 4)) $pyjs__exception_func_param(arguments.callee.__name__, 1, 4, arguments.length);5108 }5109 if ($pyjs.options.arg_instance_type) {5110 if (self.prototype.__md5__ !== '6654669ac9d9684e1e4a19a7b32684b6') {5111 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {5112 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);5113 }5114 }5115 }5116 if (typeof a == 'undefined') a=arguments.callee.__args__[3][1];5117 if (typeof b == 'undefined') b=arguments.callee.__args__[4][1];5118 if (typeof c == 'undefined') c=arguments.callee.__args__[5][1];5119 $pyjs.track={module:'ArgsTest', lineno:798};$pyjs.trackstack.push($pyjs.track);5120 $pyjs.track.module='ArgsTest';5121 $pyjs.track.lineno=798;5122 $pyjs.track.lineno=799;5123 self.__is_instance__ && typeof self.__setattr__ == 'function' ? self.__setattr__('x', $p['list']([a, b, c])) : $p['setattr'](self, 'x', $p['list']([a, b, c])); 5124 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);5125 return null;5126 }5127 , 1, [null,null,['self'],['a', null],['b', null],['c', null]]);5128 $cls_definition['__init__'] = $method;5129 $pyjs.track.lineno=797;5130 var $bases = new Array(pyjslib.object);5131 var $data = $p['dict']();5132 for (var $item in $cls_definition) { $data.__setitem__($item, $cls_definition[$item]); }5133 return $p['_create_class']('ArgsTestClass_foo2', $p['tuple']($bases), $data);5134 })();5135 $pyjs.track.lineno=801;5136 $m['ArgsTestClass_foo3'] = (function(){5137 var $cls_definition = new Object();5138 var $method;5139 $cls_definition.__module__ = 'ArgsTest';5140 $cls_definition.__md5__ = 'e6a6b01851b166d809b7c5c7e0cb8cc8';5141 $pyjs.track.lineno=802;5142 $method = $pyjs__bind_method2('__init__', function(a, b, c) {5143 if (this.__is_instance__ === true) {5144 var self = this;5145 if ($pyjs.options.arg_count && (arguments.length < 0 || arguments.length > 3)) $pyjs__exception_func_param(arguments.callee.__name__, 1, 4, arguments.length+1);5146 } else {5147 var self = arguments[0];5148 a = arguments[1];5149 b = arguments[2];5150 c = arguments[3];5151 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);5152 if ($pyjs.options.arg_count && (arguments.length < 1 || arguments.length > 4)) $pyjs__exception_func_param(arguments.callee.__name__, 1, 4, arguments.length);5153 }5154 if ($pyjs.options.arg_instance_type) {5155 if (self.prototype.__md5__ !== 'e6a6b01851b166d809b7c5c7e0cb8cc8') {5156 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {5157 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);5158 }5159 }5160 }5161 if (typeof a == 'undefined') a=arguments.callee.__args__[3][1];5162 if (typeof b == 'undefined') b=arguments.callee.__args__[4][1];5163 if (typeof c == 'undefined') c=arguments.callee.__args__[5][1];5164 $pyjs.track={module:'ArgsTest', lineno:802};$pyjs.trackstack.push($pyjs.track);5165 $pyjs.track.module='ArgsTest';5166 $pyjs.track.lineno=802;5167 $pyjs.track.lineno=803;5168 self.__is_instance__ && typeof self.__setattr__ == 'function' ? self.__setattr__('x', $p['list']([a, b, c])) : $p['setattr'](self, 'x', $p['list']([a, b, c])); 5169 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);5170 return null;5171 }5172 , 1, [null,null,['self'],['a', $constant_int_1],['b', $constant_int_2],['c', $constant_int_3]]);5173 $cls_definition['__init__'] = $method;5174 $pyjs.track.lineno=801;5175 var $bases = new Array(pyjslib.object);5176 var $data = $p['dict']();5177 for (var $item in $cls_definition) { $data.__setitem__($item, $cls_definition[$item]); }5178 return $p['_create_class']('ArgsTestClass_foo3', $p['tuple']($bases), $data);5179 })();5180 $pyjs.track.lineno=805;5181 $m['ArgsTestClass_foo4'] = (function(){5182 var $cls_definition = new Object();5183 var $method;5184 $cls_definition.__module__ = 'ArgsTest';5185 $cls_definition.__md5__ = 'b30569f5eb85f44689659f03c76ccc71';5186 $pyjs.track.lineno=806;5187 $method = $pyjs__bind_method2('__init__', function(a, b, c) {5188 if (this.__is_instance__ === true) {5189 var self = this;5190 var args = $p['tuple']($pyjs_array_slice.call(arguments,3,arguments.length));5191 if ($pyjs.options.arg_count && arguments.length < 3) $pyjs__exception_func_param(arguments.callee.__name__, 4, null, arguments.length+1);5192 } else {5193 var self = arguments[0];5194 a = arguments[1];5195 b = arguments[2];5196 c = arguments[3];5197 var args = $p['tuple']($pyjs_array_slice.call(arguments,4,arguments.length));5198 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);5199 if ($pyjs.options.arg_count && arguments.length < 4) $pyjs__exception_func_param(arguments.callee.__name__, 4, null, arguments.length);5200 }5201 if ($pyjs.options.arg_instance_type) {5202 if (self.prototype.__md5__ !== 'b30569f5eb85f44689659f03c76ccc71') {5203 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {5204 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);5205 }5206 }5207 }5208 $pyjs.track={module:'ArgsTest', lineno:806};$pyjs.trackstack.push($pyjs.track);5209 $pyjs.track.module='ArgsTest';5210 $pyjs.track.lineno=806;5211 $pyjs.track.lineno=807;5212 self.__is_instance__ && typeof self.__setattr__ == 'function' ? self.__setattr__('x', $p['tuple']([a, b, c, args])) : $p['setattr'](self, 'x', $p['tuple']([a, b, c, args])); 5213 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);5214 return null;5215 }5216 , 1, ['args',null,['self'],['a'],['b'],['c']]);5217 $cls_definition['__init__'] = $method;5218 $pyjs.track.lineno=805;5219 var $bases = new Array(pyjslib.object);5220 var $data = $p['dict']();5221 for (var $item in $cls_definition) { $data.__setitem__($item, $cls_definition[$item]); }5222 return $p['_create_class']('ArgsTestClass_foo4', $p['tuple']($bases), $data);5223 })();5224 $pyjs.track.lineno=809;5225 $m['ArgsTestClass_foo5'] = (function(){5226 var $cls_definition = new Object();5227 var $method;5228 $cls_definition.__module__ = 'ArgsTest';5229 $cls_definition.__md5__ = '046a2d5a2e75046997d0f22522a67ae1';5230 $pyjs.track.lineno=810;5231 $method = $pyjs__bind_method2('__init__', function(a, b, c) {5232 if (this.__is_instance__ === true) {5233 var self = this;5234 var kwargs = arguments.length >= 4 ? arguments[arguments.length-1] : arguments[arguments.length];5235 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {5236 var kwargs = arguments[arguments.length+1];5237 } else {5238 delete kwargs['$pyjs_is_kwarg'];5239 }5240 if ($pyjs.options.arg_count && (arguments.length < 3 || arguments.length > 4)) $pyjs__exception_func_param(arguments.callee.__name__, 4, 5, arguments.length+1);5241 } else {5242 var self = arguments[0];5243 a = arguments[1];5244 b = arguments[2];5245 c = arguments[3];5246 var kwargs = arguments.length >= 5 ? arguments[arguments.length-1] : arguments[arguments.length];5247 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {5248 kwargs = arguments[arguments.length+1];5249 } else {5250 delete kwargs['$pyjs_is_kwarg'];5251 }5252 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);5253 if ($pyjs.options.arg_count && (arguments.length < 4 || arguments.length > 5)) $pyjs__exception_func_param(arguments.callee.__name__, 4, 5, arguments.length);5254 }5255 if ($pyjs.options.arg_instance_type) {5256 if (self.prototype.__md5__ !== '046a2d5a2e75046997d0f22522a67ae1') {5257 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {5258 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);5259 }5260 }5261 }5262 if (typeof kwargs == 'undefined') {5263 kwargs = $p['__empty_dict']();5264 if (typeof c != 'undefined') {5265 if (c !== null && typeof c['$pyjs_is_kwarg'] != 'undefined') {5266 kwargs = c;5267 c = arguments[4];5268 }5269 } else if (typeof b != 'undefined') {5270 if (b !== null && typeof b['$pyjs_is_kwarg'] != 'undefined') {5271 kwargs = b;5272 b = arguments[4];5273 }5274 } else if (typeof a != 'undefined') {5275 if (a !== null && typeof a['$pyjs_is_kwarg'] != 'undefined') {5276 kwargs = a;5277 a = arguments[4];5278 }5279 } else if (typeof self != 'undefined') {5280 if (self !== null && typeof self['$pyjs_is_kwarg'] != 'undefined') {5281 kwargs = self;5282 self = arguments[4];5283 }5284 } else {5285 }5286 }5287 $pyjs.track={module:'ArgsTest', lineno:810};$pyjs.trackstack.push($pyjs.track);5288 $pyjs.track.module='ArgsTest';5289 $pyjs.track.lineno=810;5290 $pyjs.track.lineno=811;5291 self.__is_instance__ && typeof self.__setattr__ == 'function' ? self.__setattr__('x', $p['tuple']([a, b, c, kwargs])) : $p['setattr'](self, 'x', $p['tuple']([a, b, c, kwargs])); 5292 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);5293 return null;5294 }5295 , 1, [null,['kwargs'],['self'],['a'],['b'],['c']]);5296 $cls_definition['__init__'] = $method;5297 $pyjs.track.lineno=809;5298 var $bases = new Array(pyjslib.object);5299 var $data = $p['dict']();5300 for (var $item in $cls_definition) { $data.__setitem__($item, $cls_definition[$item]); }5301 return $p['_create_class']('ArgsTestClass_foo5', $p['tuple']($bases), $data);5302 })();5303 $pyjs.track.lineno=813;5304 $m['ArgsTestClass_foo6'] = (function(){5305 var $cls_definition = new Object();5306 var $method;5307 $cls_definition.__module__ = 'ArgsTest';5308 $cls_definition.__md5__ = '5a114e81e802f1356380db3f93a9884a';5309 $pyjs.track.lineno=814;5310 $method = $pyjs__bind_method2('__init__', function(a, b, c) {5311 if (this.__is_instance__ === true) {5312 var self = this;5313 var args = $p['tuple']($pyjs_array_slice.call(arguments,3,arguments.length-1));5314 var kwargs = arguments.length >= 4 ? arguments[arguments.length-1] : arguments[arguments.length];5315 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {5316 if (typeof kwargs != 'undefined') args.__array.push(kwargs);5317 var kwargs = arguments[arguments.length+1];5318 } else {5319 delete kwargs['$pyjs_is_kwarg'];5320 }5321 if ($pyjs.options.arg_count && arguments.length < 3) $pyjs__exception_func_param(arguments.callee.__name__, 4, null, arguments.length+1);5322 } else {5323 var self = arguments[0];5324 a = arguments[1];5325 b = arguments[2];5326 c = arguments[3];5327 var args = $p['tuple']($pyjs_array_slice.call(arguments,4,arguments.length-1));5328 var kwargs = arguments.length >= 5 ? arguments[arguments.length-1] : arguments[arguments.length];5329 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {5330 if (typeof kwargs != 'undefined') args.__array.push(kwargs);5331 kwargs = arguments[arguments.length+1];5332 } else {5333 delete kwargs['$pyjs_is_kwarg'];5334 }5335 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);5336 if ($pyjs.options.arg_count && arguments.length < 4) $pyjs__exception_func_param(arguments.callee.__name__, 4, null, arguments.length);5337 }5338 if ($pyjs.options.arg_instance_type) {5339 if (self.prototype.__md5__ !== '5a114e81e802f1356380db3f93a9884a') {5340 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {5341 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);5342 }5343 }5344 }5345 if (typeof kwargs == 'undefined') {5346 kwargs = $p['__empty_dict']();5347 if (typeof c != 'undefined') {5348 if (c !== null && typeof c['$pyjs_is_kwarg'] != 'undefined') {5349 kwargs = c;5350 c = arguments[4];5351 }5352 } else if (typeof b != 'undefined') {5353 if (b !== null && typeof b['$pyjs_is_kwarg'] != 'undefined') {5354 kwargs = b;5355 b = arguments[4];5356 }5357 } else if (typeof a != 'undefined') {5358 if (a !== null && typeof a['$pyjs_is_kwarg'] != 'undefined') {5359 kwargs = a;5360 a = arguments[4];5361 }5362 } else if (typeof self != 'undefined') {5363 if (self !== null && typeof self['$pyjs_is_kwarg'] != 'undefined') {5364 kwargs = self;5365 self = arguments[4];5366 }5367 } else {5368 }5369 }5370 $pyjs.track={module:'ArgsTest', lineno:814};$pyjs.trackstack.push($pyjs.track);5371 $pyjs.track.module='ArgsTest';5372 $pyjs.track.lineno=814;5373 $pyjs.track.lineno=815;5374 self.__is_instance__ && typeof self.__setattr__ == 'function' ? self.__setattr__('x', $p['tuple']([a, b, c, args, kwargs])) : $p['setattr'](self, 'x', $p['tuple']([a, b, c, args, kwargs])); 5375 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);5376 return null;5377 }5378 , 1, ['args',['kwargs'],['self'],['a'],['b'],['c']]);5379 $cls_definition['__init__'] = $method;5380 $pyjs.track.lineno=813;5381 var $bases = new Array(pyjslib.object);5382 var $data = $p['dict']();5383 for (var $item in $cls_definition) { $data.__setitem__($item, $cls_definition[$item]); }5384 return $p['_create_class']('ArgsTestClass_foo6', $p['tuple']($bases), $data);5385 })();5386 $pyjs.track.lineno=817;5387 $m['ArgsTestClass'] = (function(){5388 var $cls_definition = new Object();5389 var $method;5390 $cls_definition.__module__ = 'ArgsTest';5391 $cls_definition.__md5__ = '1ae077b3963cd71a38bafe9a213646cb';5392 $pyjs.track.lineno=818;5393 $method = $pyjs__bind_method2('foo', function(a, b, c) {5394 if (this.__is_instance__ === true) {5395 var self = this;5396 if ($pyjs.options.arg_count && arguments.length != 3) $pyjs__exception_func_param(arguments.callee.__name__, 4, 4, arguments.length+1);5397 } else {5398 var self = arguments[0];5399 a = arguments[1];5400 b = arguments[2];5401 c = arguments[3];5402 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);5403 if ($pyjs.options.arg_count && arguments.length != 4) $pyjs__exception_func_param(arguments.callee.__name__, 4, 4, arguments.length);5404 }5405 if ($pyjs.options.arg_instance_type) {5406 if (self.prototype.__md5__ !== '1ae077b3963cd71a38bafe9a213646cb') {5407 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {5408 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);5409 }5410 }5411 }5412 $pyjs.track={module:'ArgsTest', lineno:818};$pyjs.trackstack.push($pyjs.track);5413 $pyjs.track.module='ArgsTest';5414 $pyjs.track.lineno=818;5415 $pyjs.track.lineno=819;5416 $pyjs.track.lineno=819;5417 var $pyjs__ret = $p['list']([a, b, c]);5418 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);5419 return $pyjs__ret;5420 }5421 , 1, [null,null,['self'],['a'],['b'],['c']]);5422 $cls_definition['foo'] = $method;5423 $pyjs.track.lineno=821;5424 $method = $pyjs__bind_method2('foo2', function(a, b, c) {5425 if (this.__is_instance__ === true) {5426 var self = this;5427 if ($pyjs.options.arg_count && (arguments.length < 0 || arguments.length > 3)) $pyjs__exception_func_param(arguments.callee.__name__, 1, 4, arguments.length+1);5428 } else {5429 var self = arguments[0];5430 a = arguments[1];5431 b = arguments[2];5432 c = arguments[3];5433 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);5434 if ($pyjs.options.arg_count && (arguments.length < 1 || arguments.length > 4)) $pyjs__exception_func_param(arguments.callee.__name__, 1, 4, arguments.length);5435 }5436 if ($pyjs.options.arg_instance_type) {5437 if (self.prototype.__md5__ !== '1ae077b3963cd71a38bafe9a213646cb') {5438 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {5439 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);5440 }5441 }5442 }5443 if (typeof a == 'undefined') a=arguments.callee.__args__[3][1];5444 if (typeof b == 'undefined') b=arguments.callee.__args__[4][1];5445 if (typeof c == 'undefined') c=arguments.callee.__args__[5][1];5446 $pyjs.track={module:'ArgsTest', lineno:821};$pyjs.trackstack.push($pyjs.track);5447 $pyjs.track.module='ArgsTest';5448 $pyjs.track.lineno=821;5449 $pyjs.track.lineno=822;5450 $pyjs.track.lineno=822;5451 var $pyjs__ret = $p['list']([a, b, c]);5452 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);5453 return $pyjs__ret;5454 }5455 , 1, [null,null,['self'],['a', null],['b', null],['c', null]]);5456 $cls_definition['foo2'] = $method;5457 $pyjs.track.lineno=824;5458 $method = $pyjs__bind_method2('foo3', function(a, b, c) {5459 if (this.__is_instance__ === true) {5460 var self = this;5461 if ($pyjs.options.arg_count && (arguments.length < 0 || arguments.length > 3)) $pyjs__exception_func_param(arguments.callee.__name__, 1, 4, arguments.length+1);5462 } else {5463 var self = arguments[0];5464 a = arguments[1];5465 b = arguments[2];5466 c = arguments[3];5467 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);5468 if ($pyjs.options.arg_count && (arguments.length < 1 || arguments.length > 4)) $pyjs__exception_func_param(arguments.callee.__name__, 1, 4, arguments.length);5469 }5470 if ($pyjs.options.arg_instance_type) {5471 if (self.prototype.__md5__ !== '1ae077b3963cd71a38bafe9a213646cb') {5472 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {5473 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);5474 }5475 }5476 }5477 if (typeof a == 'undefined') a=arguments.callee.__args__[3][1];5478 if (typeof b == 'undefined') b=arguments.callee.__args__[4][1];5479 if (typeof c == 'undefined') c=arguments.callee.__args__[5][1];5480 $pyjs.track={module:'ArgsTest', lineno:824};$pyjs.trackstack.push($pyjs.track);5481 $pyjs.track.module='ArgsTest';5482 $pyjs.track.lineno=824;5483 $pyjs.track.lineno=825;5484 $pyjs.track.lineno=825;5485 var $pyjs__ret = $p['list']([a, b, c]);5486 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);5487 return $pyjs__ret;5488 }5489 , 1, [null,null,['self'],['a', $constant_int_1],['b', $constant_int_2],['c', $constant_int_3]]);5490 $cls_definition['foo3'] = $method;5491 $pyjs.track.lineno=827;5492 $method = $pyjs__bind_method2('foo4', function() {5493 if (this.__is_instance__ === true) {5494 var self = this;5495 var args = $p['tuple']($pyjs_array_slice.call(arguments,0,arguments.length));5496 if ($pyjs.options.arg_count && arguments.length < 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, null, arguments.length+1);5497 } else {5498 var self = arguments[0];5499 var args = $p['tuple']($pyjs_array_slice.call(arguments,1,arguments.length));5500 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);5501 if ($pyjs.options.arg_count && arguments.length < 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, null, arguments.length);5502 }5503 if ($pyjs.options.arg_instance_type) {5504 if (self.prototype.__md5__ !== '1ae077b3963cd71a38bafe9a213646cb') {5505 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {5506 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);5507 }5508 }5509 }5510 $pyjs.track={module:'ArgsTest', lineno:827};$pyjs.trackstack.push($pyjs.track);5511 $pyjs.track.module='ArgsTest';5512 $pyjs.track.lineno=827;5513 $pyjs.track.lineno=828;5514 $pyjs.track.lineno=828;5515 var $pyjs__ret = args;5516 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);5517 return $pyjs__ret;5518 }5519 , 1, ['args',null,['self']]);5520 $cls_definition['foo4'] = $method;5521 $pyjs.track.lineno=830;5522 $method = $pyjs__bind_method2('foo5', function() {5523 if (this.__is_instance__ === true) {5524 var self = this;5525 var kwargs = arguments.length >= 1 ? arguments[arguments.length-1] : arguments[arguments.length];5526 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {5527 var kwargs = arguments[arguments.length+1];5528 } else {5529 delete kwargs['$pyjs_is_kwarg'];5530 }5531 if ($pyjs.options.arg_count && (arguments.length < 0 || arguments.length > 1)) $pyjs__exception_func_param(arguments.callee.__name__, 1, 2, arguments.length+1);5532 } else {5533 var self = arguments[0];5534 var kwargs = arguments.length >= 2 ? arguments[arguments.length-1] : arguments[arguments.length];5535 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {5536 kwargs = arguments[arguments.length+1];5537 } else {5538 delete kwargs['$pyjs_is_kwarg'];5539 }5540 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);5541 if ($pyjs.options.arg_count && (arguments.length < 1 || arguments.length > 2)) $pyjs__exception_func_param(arguments.callee.__name__, 1, 2, arguments.length);5542 }5543 if ($pyjs.options.arg_instance_type) {5544 if (self.prototype.__md5__ !== '1ae077b3963cd71a38bafe9a213646cb') {5545 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {5546 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);5547 }5548 }5549 }5550 if (typeof kwargs == 'undefined') {5551 kwargs = $p['__empty_dict']();5552 if (typeof self != 'undefined') {5553 if (self !== null && typeof self['$pyjs_is_kwarg'] != 'undefined') {5554 kwargs = self;5555 self = arguments[1];5556 }5557 } else {5558 }5559 }5560 $pyjs.track={module:'ArgsTest', lineno:830};$pyjs.trackstack.push($pyjs.track);5561 $pyjs.track.module='ArgsTest';5562 $pyjs.track.lineno=830;5563 $pyjs.track.lineno=831;5564 $pyjs.track.lineno=831;5565 var $pyjs__ret = kwargs;5566 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);5567 return $pyjs__ret;5568 }5569 , 1, [null,['kwargs'],['self']]);5570 $cls_definition['foo5'] = $method;5571 $pyjs.track.lineno=833;5572 $method = $pyjs__bind_method2('foo6', function() {5573 if (this.__is_instance__ === true) {5574 var self = this;5575 var args = $p['tuple']($pyjs_array_slice.call(arguments,0,arguments.length-1));5576 var kwargs = arguments.length >= 1 ? arguments[arguments.length-1] : arguments[arguments.length];5577 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {5578 if (typeof kwargs != 'undefined') args.__array.push(kwargs);5579 var kwargs = arguments[arguments.length+1];5580 } else {5581 delete kwargs['$pyjs_is_kwarg'];5582 }5583 if ($pyjs.options.arg_count && arguments.length < 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, null, arguments.length+1);5584 } else {5585 var self = arguments[0];5586 var args = $p['tuple']($pyjs_array_slice.call(arguments,1,arguments.length-1));5587 var kwargs = arguments.length >= 2 ? arguments[arguments.length-1] : arguments[arguments.length];5588 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {5589 if (typeof kwargs != 'undefined') args.__array.push(kwargs);5590 kwargs = arguments[arguments.length+1];5591 } else {5592 delete kwargs['$pyjs_is_kwarg'];5593 }5594 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);5595 if ($pyjs.options.arg_count && arguments.length < 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, null, arguments.length);5596 }5597 if ($pyjs.options.arg_instance_type) {5598 if (self.prototype.__md5__ !== '1ae077b3963cd71a38bafe9a213646cb') {5599 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {5600 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);5601 }5602 }5603 }5604 if (typeof kwargs == 'undefined') {5605 kwargs = $p['__empty_dict']();5606 if (typeof self != 'undefined') {5607 if (self !== null && typeof self['$pyjs_is_kwarg'] != 'undefined') {5608 kwargs = self;5609 self = arguments[1];5610 }5611 } else {5612 }5613 }5614 $pyjs.track={module:'ArgsTest', lineno:833};$pyjs.trackstack.push($pyjs.track);5615 $pyjs.track.module='ArgsTest';5616 $pyjs.track.lineno=833;5617 $pyjs.track.lineno=834;5618 $pyjs.track.lineno=834;5619 var $pyjs__ret = $p['tuple']([args, kwargs]);5620 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);5621 return $pyjs__ret;5622 }5623 , 1, ['args',['kwargs'],['self']]);5624 $cls_definition['foo6'] = $method;5625 $pyjs.track.lineno=836;5626 $method = $pyjs__bind_method2('foo7', function(a) {5627 if (this.__is_instance__ === true) {5628 var self = this;5629 var args = $p['tuple']($pyjs_array_slice.call(arguments,1,arguments.length-1));5630 var kwargs = arguments.length >= 2 ? arguments[arguments.length-1] : arguments[arguments.length];5631 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {5632 if (typeof kwargs != 'undefined') args.__array.push(kwargs);5633 var kwargs = arguments[arguments.length+1];5634 } else {5635 delete kwargs['$pyjs_is_kwarg'];5636 }5637 if ($pyjs.options.arg_count && arguments.length < 1) $pyjs__exception_func_param(arguments.callee.__name__, 2, null, arguments.length+1);5638 } else {5639 var self = arguments[0];5640 a = arguments[1];5641 var args = $p['tuple']($pyjs_array_slice.call(arguments,2,arguments.length-1));5642 var kwargs = arguments.length >= 3 ? arguments[arguments.length-1] : arguments[arguments.length];5643 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {5644 if (typeof kwargs != 'undefined') args.__array.push(kwargs);5645 kwargs = arguments[arguments.length+1];5646 } else {5647 delete kwargs['$pyjs_is_kwarg'];5648 }5649 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);5650 if ($pyjs.options.arg_count && arguments.length < 2) $pyjs__exception_func_param(arguments.callee.__name__, 2, null, arguments.length);5651 }5652 if ($pyjs.options.arg_instance_type) {5653 if (self.prototype.__md5__ !== '1ae077b3963cd71a38bafe9a213646cb') {5654 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {5655 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);5656 }5657 }5658 }5659 if (typeof kwargs == 'undefined') {5660 kwargs = $p['__empty_dict']();5661 if (typeof a != 'undefined') {5662 if (a !== null && typeof a['$pyjs_is_kwarg'] != 'undefined') {5663 kwargs = a;5664 a = arguments[2];5665 }5666 } else if (typeof self != 'undefined') {5667 if (self !== null && typeof self['$pyjs_is_kwarg'] != 'undefined') {5668 kwargs = self;5669 self = arguments[2];5670 }5671 } else {5672 }5673 }5674 $pyjs.track={module:'ArgsTest', lineno:836};$pyjs.trackstack.push($pyjs.track);5675 $pyjs.track.module='ArgsTest';5676 $pyjs.track.lineno=836;5677 $pyjs.track.lineno=837;5678 $pyjs.track.lineno=837;5679 var $pyjs__ret = $p['tuple']([a, args, kwargs]);5680 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);5681 return $pyjs__ret;5682 }5683 , 1, ['args',['kwargs'],['self'],['a']]);5684 $cls_definition['foo7'] = $method;5685 $pyjs.track.lineno=839;5686 $method = $pyjs__bind_method2('foo8', function(a) {5687 if (this.__is_instance__ === true) {5688 var self = this;5689 var kwargs = arguments.length >= 2 ? arguments[arguments.length-1] : arguments[arguments.length];5690 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {5691 var kwargs = arguments[arguments.length+1];5692 } else {5693 delete kwargs['$pyjs_is_kwarg'];5694 }5695 if ($pyjs.options.arg_count && (arguments.length < 1 || arguments.length > 2)) $pyjs__exception_func_param(arguments.callee.__name__, 2, 3, arguments.length+1);5696 } else {5697 var self = arguments[0];5698 a = arguments[1];5699 var kwargs = arguments.length >= 3 ? arguments[arguments.length-1] : arguments[arguments.length];5700 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {5701 kwargs = arguments[arguments.length+1];5702 } else {5703 delete kwargs['$pyjs_is_kwarg'];5704 }5705 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);5706 if ($pyjs.options.arg_count && (arguments.length < 2 || arguments.length > 3)) $pyjs__exception_func_param(arguments.callee.__name__, 2, 3, arguments.length);5707 }5708 if ($pyjs.options.arg_instance_type) {5709 if (self.prototype.__md5__ !== '1ae077b3963cd71a38bafe9a213646cb') {5710 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {5711 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);5712 }5713 }5714 }5715 if (typeof kwargs == 'undefined') {5716 kwargs = $p['__empty_dict']();5717 if (typeof a != 'undefined') {5718 if (a !== null && typeof a['$pyjs_is_kwarg'] != 'undefined') {5719 kwargs = a;5720 a = arguments[2];5721 }5722 } else if (typeof self != 'undefined') {5723 if (self !== null && typeof self['$pyjs_is_kwarg'] != 'undefined') {5724 kwargs = self;5725 self = arguments[2];5726 }5727 } else {5728 }5729 }5730 $pyjs.track={module:'ArgsTest', lineno:839};$pyjs.trackstack.push($pyjs.track);5731 $pyjs.track.module='ArgsTest';5732 $pyjs.track.lineno=839;5733 $pyjs.track.lineno=840;5734 $pyjs.track.lineno=840;5735 var $pyjs__ret = $p['tuple']([a, kwargs]);5736 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);5737 return $pyjs__ret;5738 }5739 , 1, [null,['kwargs'],['self'],['a']]);5740 $cls_definition['foo8'] = $method;5741 $pyjs.track.lineno=817;5742 var $bases = new Array(pyjslib.object);5743 var $data = $p['dict']();5744 for (var $item in $cls_definition) { $data.__setitem__($item, $cls_definition[$item]); }5745 return $p['_create_class']('ArgsTestClass', $p['tuple']($bases), $data);5746 })();5747 $pyjs.track.lineno=843;5748 $m['ArgsTestClass2'] = (function(){5749 var $cls_definition = new Object();5750 var $method;5751 $cls_definition.__module__ = 'ArgsTest';5752 $cls_definition.__md5__ = 'dd963ee3fc97debe0c96f90beab7a05d';5753 $pyjs.track.lineno=845;5754 $method = $pyjs__bind_method2('foo', function(a, b, c) {5755 if ($pyjs.options.arg_count && arguments.length != 3) $pyjs__exception_func_param(arguments.callee.__name__, 3, 3, arguments.length);5756 $pyjs.track={module:'ArgsTest', lineno:845};$pyjs.trackstack.push($pyjs.track);5757 $pyjs.track.module='ArgsTest';5758 $pyjs.track.lineno=845;5759 $pyjs.track.lineno=846;5760 $pyjs.track.lineno=846;5761 var $pyjs__ret = $p['list']([a, b, c]);5762 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);5763 return $pyjs__ret;5764 }5765 , 3, [null,null,['a'],['b'],['c']]);5766 $cls_definition['foo'] = $method;5767 $pyjs.track.lineno=849;5768 $method = $pyjs__bind_method2('foo2', function(a, b, c) {5769 if ($pyjs.options.arg_count && (arguments.length < 0 || arguments.length > 3)) $pyjs__exception_func_param(arguments.callee.__name__, 0, 3, arguments.length);5770 if (typeof a == 'undefined') a=arguments.callee.__args__[2][1];5771 if (typeof b == 'undefined') b=arguments.callee.__args__[3][1];5772 if (typeof c == 'undefined') c=arguments.callee.__args__[4][1];5773 $pyjs.track={module:'ArgsTest', lineno:849};$pyjs.trackstack.push($pyjs.track);5774 $pyjs.track.module='ArgsTest';5775 $pyjs.track.lineno=849;5776 $pyjs.track.lineno=850;5777 $pyjs.track.lineno=850;5778 var $pyjs__ret = $p['list']([a, b, c]);5779 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);5780 return $pyjs__ret;5781 }5782 , 3, [null,null,['a', null],['b', null],['c', null]]);5783 $cls_definition['foo2'] = $method;5784 $pyjs.track.lineno=853;5785 $method = $pyjs__bind_method2('foo3', function(a, b, c) {5786 if ($pyjs.options.arg_count && (arguments.length < 0 || arguments.length > 3)) $pyjs__exception_func_param(arguments.callee.__name__, 0, 3, arguments.length);5787 if (typeof a == 'undefined') a=arguments.callee.__args__[2][1];5788 if (typeof b == 'undefined') b=arguments.callee.__args__[3][1];5789 if (typeof c == 'undefined') c=arguments.callee.__args__[4][1];5790 $pyjs.track={module:'ArgsTest', lineno:853};$pyjs.trackstack.push($pyjs.track);5791 $pyjs.track.module='ArgsTest';5792 $pyjs.track.lineno=853;5793 $pyjs.track.lineno=854;5794 $pyjs.track.lineno=854;5795 var $pyjs__ret = $p['list']([a, b, c]);5796 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);5797 return $pyjs__ret;5798 }5799 , 3, [null,null,['a', $constant_int_1],['b', $constant_int_2],['c', $constant_int_3]]);5800 $cls_definition['foo3'] = $method;5801 $pyjs.track.lineno=857;5802 $method = $pyjs__bind_method2('foo4', function() {5803 if ($pyjs.options.arg_count && arguments.length < 0) $pyjs__exception_func_param(arguments.callee.__name__, 0, null, arguments.length);5804 var args = $p['tuple']($pyjs_array_slice.call(arguments,0,arguments.length));5805 $pyjs.track={module:'ArgsTest', lineno:857};$pyjs.trackstack.push($pyjs.track);5806 $pyjs.track.module='ArgsTest';5807 $pyjs.track.lineno=857;5808 $pyjs.track.lineno=858;5809 $pyjs.track.lineno=858;5810 var $pyjs__ret = args;5811 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);5812 return $pyjs__ret;5813 }5814 , 3, ['args',null]);5815 $cls_definition['foo4'] = $method;5816 $pyjs.track.lineno=861;5817 $method = $pyjs__bind_method2('foo5', function() {5818 if ($pyjs.options.arg_count && (arguments.length < 0 || arguments.length > 1)) $pyjs__exception_func_param(arguments.callee.__name__, 0, 0, arguments.length);5819 var kwargs = arguments.length >= 1 ? arguments[arguments.length-1] : arguments[arguments.length];5820 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {5821 kwargs = arguments[arguments.length+1];5822 } else {5823 delete kwargs['$pyjs_is_kwarg'];5824 }5825 if (typeof kwargs == 'undefined') {5826 kwargs = $p['__empty_dict']();5827{5828 }5829 }5830 $pyjs.track={module:'ArgsTest', lineno:861};$pyjs.trackstack.push($pyjs.track);5831 $pyjs.track.module='ArgsTest';5832 $pyjs.track.lineno=861;5833 $pyjs.track.lineno=862;5834 $pyjs.track.lineno=862;5835 var $pyjs__ret = kwargs;5836 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);5837 return $pyjs__ret;5838 }5839 , 3, [null,['kwargs']]);5840 $cls_definition['foo5'] = $method;5841 $pyjs.track.lineno=865;5842 $method = $pyjs__bind_method2('foo6', function() {5843 if ($pyjs.options.arg_count && arguments.length < 0) $pyjs__exception_func_param(arguments.callee.__name__, 0, null, arguments.length);5844 var args = $p['tuple']($pyjs_array_slice.call(arguments,0,arguments.length-1));5845 var kwargs = arguments.length >= 1 ? arguments[arguments.length-1] : arguments[arguments.length];5846 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {5847 if (typeof kwargs != 'undefined') args.__array.push(kwargs);5848 kwargs = arguments[arguments.length+1];5849 } else {5850 delete kwargs['$pyjs_is_kwarg'];5851 }5852 if (typeof kwargs == 'undefined') {5853 kwargs = $p['__empty_dict']();5854{5855 }5856 }5857 $pyjs.track={module:'ArgsTest', lineno:865};$pyjs.trackstack.push($pyjs.track);5858 $pyjs.track.module='ArgsTest';5859 $pyjs.track.lineno=865;5860 $pyjs.track.lineno=866;5861 $pyjs.track.lineno=866;5862 var $pyjs__ret = $p['tuple']([args, kwargs]);5863 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);5864 return $pyjs__ret;5865 }5866 , 3, ['args',['kwargs']]);5867 $cls_definition['foo6'] = $method;5868 $pyjs.track.lineno=869;5869 $method = $pyjs__bind_method2('foo7', function(a) {5870 if ($pyjs.options.arg_count && arguments.length < 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, null, arguments.length);5871 var args = $p['tuple']($pyjs_array_slice.call(arguments,1,arguments.length-1));5872 var kwargs = arguments.length >= 2 ? arguments[arguments.length-1] : arguments[arguments.length];5873 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {5874 if (typeof kwargs != 'undefined') args.__array.push(kwargs);5875 kwargs = arguments[arguments.length+1];5876 } else {5877 delete kwargs['$pyjs_is_kwarg'];5878 }5879 if (typeof kwargs == 'undefined') {5880 kwargs = $p['__empty_dict']();5881 if (typeof a != 'undefined') {5882 if (a !== null && typeof a['$pyjs_is_kwarg'] != 'undefined') {5883 kwargs = a;5884 a = arguments[1];5885 }5886 } else {5887 }5888 }5889 $pyjs.track={module:'ArgsTest', lineno:869};$pyjs.trackstack.push($pyjs.track);5890 $pyjs.track.module='ArgsTest';5891 $pyjs.track.lineno=869;5892 $pyjs.track.lineno=870;5893 $pyjs.track.lineno=870;5894 var $pyjs__ret = $p['tuple']([a, args, kwargs]);5895 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);5896 return $pyjs__ret;5897 }5898 , 3, ['args',['kwargs'],['a']]);5899 $cls_definition['foo7'] = $method;5900 $pyjs.track.lineno=873;5901 $method = $pyjs__bind_method2('foo8', function(a) {5902 if ($pyjs.options.arg_count && (arguments.length < 1 || arguments.length > 2)) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);5903 var kwargs = arguments.length >= 2 ? arguments[arguments.length-1] : arguments[arguments.length];5904 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {5905 kwargs = arguments[arguments.length+1];5906 } else {5907 delete kwargs['$pyjs_is_kwarg'];5908 }5909 if (typeof kwargs == 'undefined') {5910 kwargs = $p['__empty_dict']();5911 if (typeof a != 'undefined') {5912 if (a !== null && typeof a['$pyjs_is_kwarg'] != 'undefined') {5913 kwargs = a;5914 a = arguments[1];5915 }5916 } else {5917 }5918 }5919 $pyjs.track={module:'ArgsTest', lineno:873};$pyjs.trackstack.push($pyjs.track);5920 $pyjs.track.module='ArgsTest';5921 $pyjs.track.lineno=873;5922 $pyjs.track.lineno=874;5923 $pyjs.track.lineno=874;5924 var $pyjs__ret = $p['tuple']([a, kwargs]);5925 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);5926 return $pyjs__ret;5927 }5928 , 3, [null,['kwargs'],['a']]);5929 $cls_definition['foo8'] = $method;5930 $pyjs.track.lineno=843;5931 var $bases = new Array(pyjslib.object);5932 var $data = $p['dict']();5933 for (var $item in $cls_definition) { $data.__setitem__($item, $cls_definition[$item]); }5934 return $p['_create_class']('ArgsTestClass2', $p['tuple']($bases), $data);5935 })();5936 $pyjs.track.lineno=876;5937 $m['ArgsTestClass3'] = (function(){5938 var $cls_definition = new Object();5939 var $method;5940 $cls_definition.__module__ = 'ArgsTest';5941 $cls_definition.__md5__ = '2a9b815e7f55c9beed5248c71453bc7f';5942 $pyjs.track.lineno=878;5943 $method = $pyjs__bind_method2('foo', function(a, b, c) {5944 if ($pyjs.options.arg_is_instance && this.__is_instance__ !== true && this.__is_instance__ !== false) $pyjs__exception_func_class_expected(arguments.callee.__name__, arguments.callee.__class__.__name__);5945 if ($pyjs.options.arg_count && arguments.length != 3) $pyjs__exception_func_param(arguments.callee.__name__, 4, 3, arguments.length);5946 var self = this.prototype;5947 $pyjs.track={module:'ArgsTest', lineno:878};$pyjs.trackstack.push($pyjs.track);5948 $pyjs.track.module='ArgsTest';5949 $pyjs.track.lineno=878;5950 $pyjs.track.lineno=879;5951 $pyjs.track.lineno=879;5952 var $pyjs__ret = $p['list']([a, b, c]);5953 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);5954 return $pyjs__ret;5955 }5956 , 2, [null,null,['self'],['a'],['b'],['c']]);5957 $cls_definition['foo'] = $method;5958 $pyjs.track.lineno=882;5959 $method = $pyjs__bind_method2('foo2', function(a, b, c) {5960 if ($pyjs.options.arg_is_instance && this.__is_instance__ !== true && this.__is_instance__ !== false) $pyjs__exception_func_class_expected(arguments.callee.__name__, arguments.callee.__class__.__name__);5961 if ($pyjs.options.arg_count && (arguments.length < 0 || arguments.length > 3)) $pyjs__exception_func_param(arguments.callee.__name__, 1, 4, arguments.length);5962 var self = this.prototype;5963 if (typeof a == 'undefined') a=arguments.callee.__args__[3][1];5964 if (typeof b == 'undefined') b=arguments.callee.__args__[4][1];5965 if (typeof c == 'undefined') c=arguments.callee.__args__[5][1];5966 $pyjs.track={module:'ArgsTest', lineno:882};$pyjs.trackstack.push($pyjs.track);5967 $pyjs.track.module='ArgsTest';5968 $pyjs.track.lineno=882;5969 $pyjs.track.lineno=883;5970 $pyjs.track.lineno=883;5971 var $pyjs__ret = $p['list']([a, b, c]);5972 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);5973 return $pyjs__ret;5974 }5975 , 2, [null,null,['self'],['a', null],['b', null],['c', null]]);5976 $cls_definition['foo2'] = $method;5977 $pyjs.track.lineno=886;5978 $method = $pyjs__bind_method2('foo3', function(a, b, c) {5979 if ($pyjs.options.arg_is_instance && this.__is_instance__ !== true && this.__is_instance__ !== false) $pyjs__exception_func_class_expected(arguments.callee.__name__, arguments.callee.__class__.__name__);5980 if ($pyjs.options.arg_count && (arguments.length < 0 || arguments.length > 3)) $pyjs__exception_func_param(arguments.callee.__name__, 1, 4, arguments.length);5981 var self = this.prototype;5982 if (typeof a == 'undefined') a=arguments.callee.__args__[3][1];5983 if (typeof b == 'undefined') b=arguments.callee.__args__[4][1];5984 if (typeof c == 'undefined') c=arguments.callee.__args__[5][1];5985 $pyjs.track={module:'ArgsTest', lineno:886};$pyjs.trackstack.push($pyjs.track);5986 $pyjs.track.module='ArgsTest';5987 $pyjs.track.lineno=886;5988 $pyjs.track.lineno=887;5989 $pyjs.track.lineno=887;5990 var $pyjs__ret = $p['list']([a, b, c]);5991 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);5992 return $pyjs__ret;5993 }5994 , 2, [null,null,['self'],['a', $constant_int_1],['b', $constant_int_2],['c', $constant_int_3]]);5995 $cls_definition['foo3'] = $method;5996 $pyjs.track.lineno=890;5997 $method = $pyjs__bind_method2('foo4', function() {5998 if ($pyjs.options.arg_is_instance && this.__is_instance__ !== true && this.__is_instance__ !== false) $pyjs__exception_func_class_expected(arguments.callee.__name__, arguments.callee.__class__.__name__);5999 if ($pyjs.options.arg_count && arguments.length < 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, null, arguments.length);6000 var self = this.prototype;6001 var args = $p['tuple']($pyjs_array_slice.call(arguments,0,arguments.length));6002 $pyjs.track={module:'ArgsTest', lineno:890};$pyjs.trackstack.push($pyjs.track);6003 $pyjs.track.module='ArgsTest';6004 $pyjs.track.lineno=890;6005 $pyjs.track.lineno=891;6006 $pyjs.track.lineno=891;6007 var $pyjs__ret = args;6008 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);6009 return $pyjs__ret;6010 }6011 , 2, ['args',null,['self']]);6012 $cls_definition['foo4'] = $method;6013 $pyjs.track.lineno=894;6014 $method = $pyjs__bind_method2('foo5', function() {6015 if ($pyjs.options.arg_is_instance && this.__is_instance__ !== true && this.__is_instance__ !== false) $pyjs__exception_func_class_expected(arguments.callee.__name__, arguments.callee.__class__.__name__);6016 if ($pyjs.options.arg_count && (arguments.length < 0 || arguments.length > 1)) $pyjs__exception_func_param(arguments.callee.__name__, 1, 1, arguments.length);6017 var self = this.prototype;6018 var kwargs = arguments.length >= 1 ? arguments[arguments.length-1] : arguments[arguments.length];6019 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {6020 kwargs = arguments[arguments.length+1];6021 }6022 if (typeof kwargs == 'undefined') {6023 kwargs = $p['__empty_dict']();6024 if (typeof self != 'undefined') {6025 if (self !== null && typeof self['$pyjs_is_kwarg'] != 'undefined') {6026 kwargs = self;6027 self = arguments[1];6028 }6029 } else {6030 }6031 }6032 $pyjs.track={module:'ArgsTest', lineno:894};$pyjs.trackstack.push($pyjs.track);6033 $pyjs.track.module='ArgsTest';6034 $pyjs.track.lineno=894;6035 $pyjs.track.lineno=895;6036 $pyjs.track.lineno=895;6037 var $pyjs__ret = kwargs;6038 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);6039 return $pyjs__ret;6040 }6041 , 2, [null,['kwargs'],['self']]);6042 $cls_definition['foo5'] = $method;6043 $pyjs.track.lineno=898;6044 $method = $pyjs__bind_method2('foo6', function() {6045 if ($pyjs.options.arg_is_instance && this.__is_instance__ !== true && this.__is_instance__ !== false) $pyjs__exception_func_class_expected(arguments.callee.__name__, arguments.callee.__class__.__name__);6046 if ($pyjs.options.arg_count && arguments.length < 0) $pyjs__exception_func_param(arguments.callee.__name__, 1, null, arguments.length);6047 var self = this.prototype;6048 var args = $p['tuple']($pyjs_array_slice.call(arguments,0,arguments.length-1));6049 var kwargs = arguments.length >= 1 ? arguments[arguments.length-1] : arguments[arguments.length];6050 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {6051 if (typeof kwargs != 'undefined') args.__array.push(kwargs);6052 kwargs = arguments[arguments.length+1];6053 }6054 if (typeof kwargs == 'undefined') {6055 kwargs = $p['__empty_dict']();6056 if (typeof self != 'undefined') {6057 if (self !== null && typeof self['$pyjs_is_kwarg'] != 'undefined') {6058 kwargs = self;6059 self = arguments[1];6060 }6061 } else {6062 }6063 }6064 $pyjs.track={module:'ArgsTest', lineno:898};$pyjs.trackstack.push($pyjs.track);6065 $pyjs.track.module='ArgsTest';6066 $pyjs.track.lineno=898;6067 $pyjs.track.lineno=899;6068 $pyjs.track.lineno=899;6069 var $pyjs__ret = $p['tuple']([args, kwargs]);6070 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);6071 return $pyjs__ret;6072 }6073 , 2, ['args',['kwargs'],['self']]);6074 $cls_definition['foo6'] = $method;6075 $pyjs.track.lineno=902;6076 $method = $pyjs__bind_method2('foo7', function(a) {6077 if ($pyjs.options.arg_is_instance && this.__is_instance__ !== true && this.__is_instance__ !== false) $pyjs__exception_func_class_expected(arguments.callee.__name__, arguments.callee.__class__.__name__);6078 if ($pyjs.options.arg_count && arguments.length < 1) $pyjs__exception_func_param(arguments.callee.__name__, 2, null, arguments.length);6079 var self = this.prototype;6080 var args = $p['tuple']($pyjs_array_slice.call(arguments,1,arguments.length-1));6081 var kwargs = arguments.length >= 2 ? arguments[arguments.length-1] : arguments[arguments.length];6082 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {6083 if (typeof kwargs != 'undefined') args.__array.push(kwargs);6084 kwargs = arguments[arguments.length+1];6085 }6086 if (typeof kwargs == 'undefined') {6087 kwargs = $p['__empty_dict']();6088 if (typeof a != 'undefined') {6089 if (a !== null && typeof a['$pyjs_is_kwarg'] != 'undefined') {6090 kwargs = a;6091 a = arguments[2];6092 }6093 } else if (typeof self != 'undefined') {6094 if (self !== null && typeof self['$pyjs_is_kwarg'] != 'undefined') {6095 kwargs = self;6096 self = arguments[2];6097 }6098 } else {6099 }6100 }6101 $pyjs.track={module:'ArgsTest', lineno:902};$pyjs.trackstack.push($pyjs.track);6102 $pyjs.track.module='ArgsTest';6103 $pyjs.track.lineno=902;6104 $pyjs.track.lineno=903;6105 $pyjs.track.lineno=903;6106 var $pyjs__ret = $p['tuple']([a, args, kwargs]);6107 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);6108 return $pyjs__ret;6109 }6110 , 2, ['args',['kwargs'],['self'],['a']]);6111 $cls_definition['foo7'] = $method;6112 $pyjs.track.lineno=906;6113 $method = $pyjs__bind_method2('foo8', function(a) {6114 if ($pyjs.options.arg_is_instance && this.__is_instance__ !== true && this.__is_instance__ !== false) $pyjs__exception_func_class_expected(arguments.callee.__name__, arguments.callee.__class__.__name__);6115 if ($pyjs.options.arg_count && (arguments.length < 1 || arguments.length > 2)) $pyjs__exception_func_param(arguments.callee.__name__, 2, 2, arguments.length);6116 var self = this.prototype;6117 var kwargs = arguments.length >= 2 ? arguments[arguments.length-1] : arguments[arguments.length];6118 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {6119 kwargs = arguments[arguments.length+1];6120 }6121 if (typeof kwargs == 'undefined') {6122 kwargs = $p['__empty_dict']();6123 if (typeof a != 'undefined') {6124 if (a !== null && typeof a['$pyjs_is_kwarg'] != 'undefined') {6125 kwargs = a;6126 a = arguments[2];6127 }6128 } else if (typeof self != 'undefined') {6129 if (self !== null && typeof self['$pyjs_is_kwarg'] != 'undefined') {6130 kwargs = self;6131 self = arguments[2];6132 }6133 } else {6134 }6135 }6136 $pyjs.track={module:'ArgsTest', lineno:906};$pyjs.trackstack.push($pyjs.track);6137 $pyjs.track.module='ArgsTest';6138 $pyjs.track.lineno=906;6139 $pyjs.track.lineno=907;6140 $pyjs.track.lineno=907;6141 var $pyjs__ret = $p['tuple']([a, kwargs]);6142 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);6143 return $pyjs__ret;6144 }6145 , 2, [null,['kwargs'],['self'],['a']]);6146 $cls_definition['foo8'] = $method;6147 $pyjs.track.lineno=876;6148 var $bases = new Array(pyjslib.object);6149 var $data = $p['dict']();6150 for (var $item in $cls_definition) { $data.__setitem__($item, $cls_definition[$item]); }6151 return $p['_create_class']('ArgsTestClass3', $p['tuple']($bases), $data);6152 })();6153 $pyjs.track.lineno=910;6154 $m['KwArgs'] = (function(){6155 var $cls_definition = new Object();6156 var $method;6157 $cls_definition.__module__ = 'ArgsTest';6158 $cls_definition.__md5__ = '4c0fee05a8e90c7058f33ab9dbb8fc91';6159 $pyjs.track.lineno=911;6160 $method = $pyjs__bind_method2('__init__', function(z, zz) {6161 if (this.__is_instance__ === true) {6162 var self = this;6163 var kwargs = arguments.length >= 3 ? arguments[arguments.length-1] : arguments[arguments.length];6164 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {6165 var kwargs = arguments[arguments.length+1];6166 } else {6167 delete kwargs['$pyjs_is_kwarg'];6168 }6169 if ($pyjs.options.arg_count && (arguments.length < 0 || arguments.length > 3)) $pyjs__exception_func_param(arguments.callee.__name__, 1, 4, arguments.length+1);6170 } else {6171 var self = arguments[0];6172 z = arguments[1];6173 zz = arguments[2];6174 var kwargs = arguments.length >= 4 ? arguments[arguments.length-1] : arguments[arguments.length];6175 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {6176 kwargs = arguments[arguments.length+1];6177 } else {6178 delete kwargs['$pyjs_is_kwarg'];6179 }6180 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);6181 if ($pyjs.options.arg_count && (arguments.length < 1 || arguments.length > 4)) $pyjs__exception_func_param(arguments.callee.__name__, 1, 4, arguments.length);6182 }6183 if ($pyjs.options.arg_instance_type) {6184 if (self.prototype.__md5__ !== '4c0fee05a8e90c7058f33ab9dbb8fc91') {6185 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {6186 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);6187 }6188 }6189 }6190 if (typeof kwargs == 'undefined') {6191 kwargs = $p['__empty_dict']();6192 if (typeof zz != 'undefined') {6193 if (zz !== null && typeof zz['$pyjs_is_kwarg'] != 'undefined') {6194 kwargs = zz;6195 zz = arguments[3];6196 }6197 } else if (typeof z != 'undefined') {6198 if (z !== null && typeof z['$pyjs_is_kwarg'] != 'undefined') {6199 kwargs = z;6200 z = arguments[3];6201 }6202 } else if (typeof self != 'undefined') {6203 if (self !== null && typeof self['$pyjs_is_kwarg'] != 'undefined') {6204 kwargs = self;6205 self = arguments[3];6206 }6207 } else {6208 }6209 }6210 if (typeof z == 'undefined') z=arguments.callee.__args__[3][1];6211 if (typeof zz == 'undefined') zz=arguments.callee.__args__[4][1];6212 $pyjs.track={module:'ArgsTest', lineno:911};$pyjs.trackstack.push($pyjs.track);6213 $pyjs.track.module='ArgsTest';6214 $pyjs.track.lineno=911;6215 $pyjs.track.lineno=912;6216 self.__is_instance__ && typeof self.__setattr__ == 'function' ? self.__setattr__('kwargs', kwargs) : $p['setattr'](self, 'kwargs', kwargs); 6217 $pyjs.track.lineno=913;6218 $p['getattr'](self, 'kwargs').__setitem__('z', z);6219 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);6220 return null;6221 }6222 , 1, [null,['kwargs'],['self'],['z', $constant_int_7],['zz', $constant_int_77]]);6223 $cls_definition['__init__'] = $method;6224 $pyjs.track.lineno=915;6225 $method = $pyjs__bind_method2('set_kwargs', function(z) {6226 if (this.__is_instance__ === true) {6227 var self = this;6228 var kwargs = arguments.length >= 2 ? arguments[arguments.length-1] : arguments[arguments.length];6229 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {6230 var kwargs = arguments[arguments.length+1];6231 } else {6232 delete kwargs['$pyjs_is_kwarg'];6233 }6234 if ($pyjs.options.arg_count && (arguments.length < 0 || arguments.length > 2)) $pyjs__exception_func_param(arguments.callee.__name__, 1, 3, arguments.length+1);6235 } else {6236 var self = arguments[0];6237 z = arguments[1];6238 var kwargs = arguments.length >= 3 ? arguments[arguments.length-1] : arguments[arguments.length];6239 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {6240 kwargs = arguments[arguments.length+1];6241 } else {6242 delete kwargs['$pyjs_is_kwarg'];6243 }6244 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);6245 if ($pyjs.options.arg_count && (arguments.length < 1 || arguments.length > 3)) $pyjs__exception_func_param(arguments.callee.__name__, 1, 3, arguments.length);6246 }6247 if ($pyjs.options.arg_instance_type) {6248 if (self.prototype.__md5__ !== '4c0fee05a8e90c7058f33ab9dbb8fc91') {6249 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {6250 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);6251 }6252 }6253 }6254 if (typeof kwargs == 'undefined') {6255 kwargs = $p['__empty_dict']();6256 if (typeof z != 'undefined') {6257 if (z !== null && typeof z['$pyjs_is_kwarg'] != 'undefined') {6258 kwargs = z;6259 z = arguments[2];6260 }6261 } else if (typeof self != 'undefined') {6262 if (self !== null && typeof self['$pyjs_is_kwarg'] != 'undefined') {6263 kwargs = self;6264 self = arguments[2];6265 }6266 } else {6267 }6268 }6269 if (typeof z == 'undefined') z=arguments.callee.__args__[3][1];6270 $pyjs.track={module:'ArgsTest', lineno:915};$pyjs.trackstack.push($pyjs.track);6271 $pyjs.track.module='ArgsTest';6272 $pyjs.track.lineno=915;6273 $pyjs.track.lineno=916;6274 self.__is_instance__ && typeof self.__setattr__ == 'function' ? self.__setattr__('kwargs', kwargs) : $p['setattr'](self, 'kwargs', kwargs); 6275 $pyjs.track.lineno=917;6276 $p['getattr'](self, 'kwargs').__setitem__('z', z);6277 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);6278 return null;6279 }6280 , 1, [null,['kwargs'],['self'],['z', $constant_int_8]]);6281 $cls_definition['set_kwargs'] = $method;6282 $pyjs.track.lineno=910;6283 var $bases = new Array(pyjslib.object);6284 var $data = $p['dict']();6285 for (var $item in $cls_definition) { $data.__setitem__($item, $cls_definition[$item]); }6286 return $p['_create_class']('KwArgs', $p['tuple']($bases), $data);6287 })();6288 $pyjs.track.lineno=919;6289 $m['Kwargs2'] = (function(){6290 var $cls_definition = new Object();6291 var $method;6292 $cls_definition.__module__ = 'ArgsTest';6293 $cls_definition.__md5__ = 'c4d0ffe807489a58d63641784c65f254';6294 $pyjs.track.lineno=921;6295 $method = $pyjs__bind_method2('__init__', function() {6296 if (this.__is_instance__ === true) {6297 var self = this;6298 var kwargs = arguments.length >= 1 ? arguments[arguments.length-1] : arguments[arguments.length];6299 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {6300 var kwargs = arguments[arguments.length+1];6301 } else {6302 delete kwargs['$pyjs_is_kwarg'];6303 }6304 if ($pyjs.options.arg_count && (arguments.length < 0 || arguments.length > 1)) $pyjs__exception_func_param(arguments.callee.__name__, 1, 2, arguments.length+1);6305 } else {6306 var self = arguments[0];6307 var kwargs = arguments.length >= 2 ? arguments[arguments.length-1] : arguments[arguments.length];6308 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {6309 kwargs = arguments[arguments.length+1];6310 } else {6311 delete kwargs['$pyjs_is_kwarg'];6312 }6313 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);6314 if ($pyjs.options.arg_count && (arguments.length < 1 || arguments.length > 2)) $pyjs__exception_func_param(arguments.callee.__name__, 1, 2, arguments.length);6315 }6316 if ($pyjs.options.arg_instance_type) {6317 if (self.prototype.__md5__ !== 'c4d0ffe807489a58d63641784c65f254') {6318 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {6319 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);6320 }6321 }6322 }6323 if (typeof kwargs == 'undefined') {6324 kwargs = $p['__empty_dict']();6325 if (typeof self != 'undefined') {6326 if (self !== null && typeof self['$pyjs_is_kwarg'] != 'undefined') {6327 kwargs = self;6328 self = arguments[1];6329 }6330 } else {6331 }6332 }6333 $pyjs.track={module:'ArgsTest', lineno:921};$pyjs.trackstack.push($pyjs.track);6334 $pyjs.track.module='ArgsTest';6335 $pyjs.track.lineno=921;6336 $pyjs.track.lineno=922;6337 $pyjs_kwargs_call($m['KwArgs'], '__init__', null, kwargs, [{}, self]);6338 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);6339 return null;6340 }6341 , 1, [null,['kwargs'],['self']]);6342 $cls_definition['__init__'] = $method;6343 $pyjs.track.lineno=924;6344 $method = $pyjs__bind_method2('set_kwargs2', function() {6345 if (this.__is_instance__ === true) {6346 var self = this;6347 var kwargs = arguments.length >= 1 ? arguments[arguments.length-1] : arguments[arguments.length];6348 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {6349 var kwargs = arguments[arguments.length+1];6350 } else {6351 delete kwargs['$pyjs_is_kwarg'];6352 }6353 if ($pyjs.options.arg_count && (arguments.length < 0 || arguments.length > 1)) $pyjs__exception_func_param(arguments.callee.__name__, 1, 2, arguments.length+1);6354 } else {6355 var self = arguments[0];6356 var kwargs = arguments.length >= 2 ? arguments[arguments.length-1] : arguments[arguments.length];6357 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {6358 kwargs = arguments[arguments.length+1];6359 } else {6360 delete kwargs['$pyjs_is_kwarg'];6361 }6362 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);6363 if ($pyjs.options.arg_count && (arguments.length < 1 || arguments.length > 2)) $pyjs__exception_func_param(arguments.callee.__name__, 1, 2, arguments.length);6364 }6365 if ($pyjs.options.arg_instance_type) {6366 if (self.prototype.__md5__ !== 'c4d0ffe807489a58d63641784c65f254') {6367 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {6368 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);6369 }6370 }6371 }6372 if (typeof kwargs == 'undefined') {6373 kwargs = $p['__empty_dict']();6374 if (typeof self != 'undefined') {6375 if (self !== null && typeof self['$pyjs_is_kwarg'] != 'undefined') {6376 kwargs = self;6377 self = arguments[1];6378 }6379 } else {6380 }6381 }6382 $pyjs.track={module:'ArgsTest', lineno:924};$pyjs.trackstack.push($pyjs.track);6383 $pyjs.track.module='ArgsTest';6384 $pyjs.track.lineno=924;6385 $pyjs.track.lineno=925;6386 $pyjs_kwargs_call($m['KwArgs'], 'set_kwargs', null, kwargs, [{}, self]);6387 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);6388 return null;6389 }6390 , 1, [null,['kwargs'],['self']]);6391 $cls_definition['set_kwargs2'] = $method;6392 $pyjs.track.lineno=927;6393 $method = $pyjs__bind_method2('set_kwargs3', function() {6394 if (this.__is_instance__ === true) {6395 var self = this;6396 var kwargs = arguments.length >= 1 ? arguments[arguments.length-1] : arguments[arguments.length];6397 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {6398 var kwargs = arguments[arguments.length+1];6399 } else {6400 delete kwargs['$pyjs_is_kwarg'];6401 }6402 if ($pyjs.options.arg_count && (arguments.length < 0 || arguments.length > 1)) $pyjs__exception_func_param(arguments.callee.__name__, 1, 2, arguments.length+1);6403 } else {6404 var self = arguments[0];6405 var kwargs = arguments.length >= 2 ? arguments[arguments.length-1] : arguments[arguments.length];6406 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {6407 kwargs = arguments[arguments.length+1];6408 } else {6409 delete kwargs['$pyjs_is_kwarg'];6410 }6411 if ($pyjs.options.arg_is_instance && self.__is_instance__ !== true) $pyjs__exception_func_instance_expected(arguments.callee.__name__, arguments.callee.__class__.__name__, self);6412 if ($pyjs.options.arg_count && (arguments.length < 1 || arguments.length > 2)) $pyjs__exception_func_param(arguments.callee.__name__, 1, 2, arguments.length);6413 }6414 if ($pyjs.options.arg_instance_type) {6415 if (self.prototype.__md5__ !== 'c4d0ffe807489a58d63641784c65f254') {6416 if (!$p['_isinstance'](self, arguments['callee']['__class__'])) {6417 $pyjs__exception_func_instance_expected(arguments['callee']['__name__'], arguments['callee']['__class__']['__name__'], self);6418 }6419 }6420 }6421 if (typeof kwargs == 'undefined') {6422 kwargs = $p['__empty_dict']();6423 if (typeof self != 'undefined') {6424 if (self !== null && typeof self['$pyjs_is_kwarg'] != 'undefined') {6425 kwargs = self;6426 self = arguments[1];6427 }6428 } else {6429 }6430 }6431 var skw;6432 $pyjs.track={module:'ArgsTest', lineno:927};$pyjs.trackstack.push($pyjs.track);6433 $pyjs.track.module='ArgsTest';6434 $pyjs.track.lineno=927;6435 $pyjs.track.lineno=928;6436 skw = $p['getattr'](self, 'set_kwargs');6437 $pyjs.track.lineno=929;6438 $pyjs_kwargs_call(null, skw, null, kwargs, [{}]);6439 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);6440 return null;6441 }6442 , 1, [null,['kwargs'],['self']]);6443 $cls_definition['set_kwargs3'] = $method;6444 $pyjs.track.lineno=919;6445 var $bases = new Array($m['KwArgs']);6446 var $data = $p['dict']();6447 for (var $item in $cls_definition) { $data.__setitem__($item, $cls_definition[$item]); }6448 return $p['_create_class']('Kwargs2', $p['tuple']($bases), $data);6449 })();6450 $pyjs.track.lineno=931;6451 $m['kw_args'] = function() {6452 if ($pyjs.options.arg_count && (arguments.length < 0 || arguments.length > 1)) $pyjs__exception_func_param(arguments.callee.__name__, 0, 0, arguments.length);6453 var kwargs = arguments.length >= 1 ? arguments[arguments.length-1] : arguments[arguments.length];6454 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {6455 kwargs = arguments[arguments.length+1];6456 } else {6457 delete kwargs['$pyjs_is_kwarg'];6458 }6459 if (typeof kwargs == 'undefined') {6460 kwargs = $p['__empty_dict']();6461{6462 }6463 }6464 $pyjs.track={module:'ArgsTest',lineno:931};$pyjs.trackstack.push($pyjs.track);6465 $pyjs.track.module='ArgsTest';6466 $pyjs.track.lineno=931;6467 $pyjs.track.lineno=932;6468 $pyjs.track.lineno=932;6469 var $pyjs__ret = kwargs;6470 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);6471 return $pyjs__ret;6472 };6473 $m['kw_args'].__name__ = 'kw_args';6474 $m['kw_args'].__bind_type__ = 0;6475 $m['kw_args'].__args__ = [null,['kwargs']];6476 $pyjs.track.lineno=934;6477 $m['kw_args2'] = function() {6478 if ($pyjs.options.arg_count && (arguments.length < 0 || arguments.length > 1)) $pyjs__exception_func_param(arguments.callee.__name__, 0, 0, arguments.length);6479 var kwargs = arguments.length >= 1 ? arguments[arguments.length-1] : arguments[arguments.length];6480 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {6481 kwargs = arguments[arguments.length+1];6482 } else {6483 delete kwargs['$pyjs_is_kwarg'];6484 }6485 if (typeof kwargs == 'undefined') {6486 kwargs = $p['__empty_dict']();6487{6488 }6489 }6490 $pyjs.track={module:'ArgsTest',lineno:934};$pyjs.trackstack.push($pyjs.track);6491 $pyjs.track.module='ArgsTest';6492 $pyjs.track.lineno=934;6493 $pyjs.track.lineno=935;6494 $pyjs.track.lineno=935;6495 var $pyjs__ret = $pyjs_kwargs_call(null, $m['kw_args'], null, kwargs, [{}]);6496 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);6497 return $pyjs__ret;6498 };6499 $m['kw_args2'].__name__ = 'kw_args2';6500 $m['kw_args2'].__bind_type__ = 0;6501 $m['kw_args2'].__args__ = [null,['kwargs']];6502 $pyjs.track.lineno=937;6503 $m['varargs_kwargs'] = function(arg1, arg2) {6504 if ($pyjs.options.arg_count && arguments.length < 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, null, arguments.length);6505 var args = $p['tuple']($pyjs_array_slice.call(arguments,2,arguments.length-1));6506 var kwargs = arguments.length >= 3 ? arguments[arguments.length-1] : arguments[arguments.length];6507 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {6508 if (typeof kwargs != 'undefined') args.__array.push(kwargs);6509 kwargs = arguments[arguments.length+1];6510 } else {6511 delete kwargs['$pyjs_is_kwarg'];6512 }6513 if (typeof kwargs == 'undefined') {6514 kwargs = $p['__empty_dict']();6515 if (typeof arg2 != 'undefined') {6516 if (arg2 !== null && typeof arg2['$pyjs_is_kwarg'] != 'undefined') {6517 kwargs = arg2;6518 arg2 = arguments[2];6519 }6520 } else if (typeof arg1 != 'undefined') {6521 if (arg1 !== null && typeof arg1['$pyjs_is_kwarg'] != 'undefined') {6522 kwargs = arg1;6523 arg1 = arguments[2];6524 }6525 } else {6526 }6527 }6528 if (typeof arg2 == 'undefined') arg2=arguments.callee.__args__[3][1];6529 $pyjs.track={module:'ArgsTest',lineno:937};$pyjs.trackstack.push($pyjs.track);6530 $pyjs.track.module='ArgsTest';6531 $pyjs.track.lineno=937;6532 $pyjs.track.lineno=938;6533 $pyjs.track.lineno=938;6534 var $pyjs__ret = $p['tuple']([arg1, arg2, args, kwargs]);6535 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);6536 return $pyjs__ret;6537 };6538 $m['varargs_kwargs'].__name__ = 'varargs_kwargs';6539 $m['varargs_kwargs'].__bind_type__ = 0;6540 $m['varargs_kwargs'].__args__ = ['args',['kwargs'],['arg1'],['arg2', $constant_int_2]];6541 $pyjs.track.lineno=940;6542 $m['varargs_kwargs2'] = function(arg1, arg2) {6543 if ($pyjs.options.arg_count && arguments.length < 1) $pyjs__exception_func_param(arguments.callee.__name__, 1, null, arguments.length);6544 var args = $p['tuple']($pyjs_array_slice.call(arguments,2,arguments.length-1));6545 var kwargs = arguments.length >= 3 ? arguments[arguments.length-1] : arguments[arguments.length];6546 if (typeof kwargs != 'object' || kwargs.__name__ != 'dict' || typeof kwargs.$pyjs_is_kwarg == 'undefined') {6547 if (typeof kwargs != 'undefined') args.__array.push(kwargs);6548 kwargs = arguments[arguments.length+1];6549 } else {6550 delete kwargs['$pyjs_is_kwarg'];6551 }6552 if (typeof kwargs == 'undefined') {6553 kwargs = $p['__empty_dict']();6554 if (typeof arg2 != 'undefined') {6555 if (arg2 !== null && typeof arg2['$pyjs_is_kwarg'] != 'undefined') {6556 kwargs = arg2;6557 arg2 = arguments[2];6558 }6559 } else if (typeof arg1 != 'undefined') {6560 if (arg1 !== null && typeof arg1['$pyjs_is_kwarg'] != 'undefined') {6561 kwargs = arg1;6562 arg1 = arguments[2];6563 }6564 } else {6565 }6566 }6567 if (typeof arg2 == 'undefined') arg2=arguments.callee.__args__[3][1];6568 $pyjs.track={module:'ArgsTest',lineno:940};$pyjs.trackstack.push($pyjs.track);6569 $pyjs.track.module='ArgsTest';6570 $pyjs.track.lineno=940;6571 $pyjs.track.lineno=941;6572 $pyjs.track.lineno=941;6573 var $pyjs__ret = $pyjs_kwargs_call(null, $m['varargs_kwargs'], args, kwargs, [{}, arg1, arg2]);6574 $pyjs.trackstack.pop();$pyjs.track=$pyjs.trackstack.pop();$pyjs.trackstack.push($pyjs.track);6575 return $pyjs__ret;6576 };6577 $m['varargs_kwargs2'].__name__ = 'varargs_kwargs2';6578 $m['varargs_kwargs2'].__bind_type__ = 0;6579 $m['varargs_kwargs2'].__args__ = ['args',['kwargs'],['arg1'],['arg2', $constant_int_3]];6580 } catch ($pyjs_attr_err) {throw $p['_errorMapping']($pyjs_attr_err);};6581 return this;6582}; /* end ArgsTest */6583/* end module: ArgsTest */6584/*6585PYJS_DEPS: ['UnitTest.UnitTest', 'UnitTest']...

Full Screen

Full Screen

TestCSVConvertor.js

Source:TestCSVConvertor.js Github

copy

Full Screen

1if ( window.isNode != false ) {2 var sh = require('shelpers').shelpers;3 var shelpers = require('shelpers');4}5function TestCSVConvertor() {6 var p = TestCSVConvertor.prototype;7 p = this;8 var self = this;9 self.settings = {};10 self.data = {}11 p.init = function init(config) {12 self.settings = sh.dv(config, {});13 config = self.settings;14 self.method();15 }16 p.method = function method(config) {17 }18 p.processTestCSV = function processTestCSV(contents) {19 var h = {};20 var config = {}21 config.ignore = ['data: WARNING: Skip: ',22 'WARNING: Skipping FS',23 'data: ERROR: Can',24 'child process '25 ]26 config.ignoreComments = true;27 config.fxProc = function parseCmd(item, i, len){28 i += 129 var rawLine = item;30 var line = item.trim();31 if ( h.inMultiLineComment ) {32 if ( line.includes('*/') ) {33 var ousideOfComment = line.split('*/')[1]34 h.inMultiLineComment = false;35 line = ousideOfComment; //overkill36 } else {37 //still indie multi line comment mode38 return;39 }40 }41 if ( h.endTest == true ) {42 return;43 }44 if ( line == 'endtest') {45 h.endTest = true;46 console.log('end test early', 'line', i)47 return;48 }49 if ( line.startsWith('#')) {50 return;51 }52 if ( line.startsWith('--')) {53 return;54 }55 if ( line == '' ) {56 return;57 }58 var showItemInput = false;59 if ( showItemInput )60 console.error(i, item)61 item = item.trim();62 var words = item.split(' ');63 words = words.filter(function removeEmpty(e) { return e.trim().length > 0 })64 var firstWord = words[0];65 firstWord = firstWord.trim();66 var lineContent = words.slice(1).join(' ').trim();67 function recreateWords() {68 }69 sh.t = '\t'70 //console.error(sh.t, i, firstWord=='endeval')71 var valid = false;72 var item = {};73 var comment = null;74 /*if ( line.includes('#') ) {75 var split = line.split('#')76 line = split[0]77 comment = split[1]78 }*/ //jquery ids79 if ( line.startsWith('#') ) {80 return;81 }82 if ( line.startsWith('~') == false83 && line.includes('~') ) {84 var split = line.split('~')85 line = split[0]86 comment = split[1]87 }88 if ( line.includes('//') ) {89 var split = line.split('//')90 line = split[0]91 comment = split[1]92 }93 line = line.trim()94 //mulite line comments95 //comments96 if ( line.includes('/*')) {97 h.inMultiLineComment = true;98 var afterComment = line.split('/*')[1];99 var ousideOfComment = afterComment.split('*/')[1]100 if ( afterComment.includes('*/')) {101 h.inMultiLineComment = false;102 line = ousideOfComment; //overkill103 } else {104 //in comment mode105 return;106 }107 }108 /* if ( h.inMultiLineComment ) {109 if ( line.includes('*!/') ) {110 var ousideOfComment = line.split('*!/')[1]111 h.inMultiLineComment = false;112 line = ousideOfComment; //overkill113 } else {114 //still indie multi line comment mode115 return;116 }117 }118 */119 //convert fx.method(args) to fx method (args)120 if ( rawLine.startsWith('fx.') &&121 line.includes('(') &&122 line.includes(')') ) {123 line = 'fx '+line.slice(3); //convert124 console.log('line', line)125 //asdf.g126 firstWord = 'fx';127 recreateWords();128 }129/*130 //silly ... we will not sepreate ''131 if ( rawLine.startsWith('tH.fx') &&132 line.includes('(') &&133 line.includes(')') ) {134 line = 'fx '+line.slice(5); //convert135 console.log('line', line)136 //asdf.g137 firstWord = 'fx';138 recreateWords();139 }140*/141 var itemCopyAtEnd = {};142 var words = line.split(' ');143 words = words.filter(function removeEmpty(e) { return e.trim().length > 0 })144 var args = words.slice(1)145 var userDenotedArgs = false;146 if ( line.includes('; ')) {147 var wordsC = args.join(' ')148 if ( wordsC ) {149 console.log('wordsC', wordsC, wordsC.split('; '))150 }151 words = wordsC.split('; ')152 args = words;153 userDenotedArgs = true;154 }155 if ( line.includes(' |')) {156 var wordsC = args.join(' ')157 if ( wordsC ) {158 console.log('wordsC', wordsC, wordsC.split(' |'))159 }160 words = wordsC.split(' |')161 args = words;162 userDenotedArgs = true;163 }164 itemCopyAtEnd.args = args;165 if ( comment ) {166 itemCopyAtEnd.comment = comment;167 }168 item.index = len+1169 item.line = i170 item.fx = i171 item.args = i172 item.orig = i173 item.comment = i174 item.lines = [];175 var validCmds = [176 'click',177 'waitForShow',178 'waitForHide',179 'verifyHidden',180 'pressEnter',181 'moreThanX',182 'clickOne','setItem','makeGreen',183 'scrollTo','verifyExists',184 'fxasync',185 'fx', 'bookmark'186 ];187 if ( validCmds.includes(firstWord)) {188 valid = true;189 item.fx = firstWord190 itemCopyAtEnd.args = [args.join(' ')]191 if ( userDenotedArgs ) { //do not combine args192 //debugger193 itemCopyAtEnd.args = args;194 }195 }196 if ( firstWord == 'fx') {197 //hanlde case where user has function fx fx1 a; b; c198 //should fx fx1; a; b; c, be gracefulw ith user199 var argsTest = itemCopyAtEnd.args200 var firstArg = argsTest[0].trim()201 if ( firstArg.includes(' ')) {202 //debugger203 var firstArgSplit = firstArg.split(' ')204 argsTest.shift(); //remove first split item205 //firstArgSplit.shift(); //remove fx name206 var argsFixed = firstArgSplit.concat(argsTest)207 itemCopyAtEnd.args = argsFixed;208 };209 if ( firstArg.includes('(') && firstArg.includes(')')) {210 if ( firstArg.endsWith(';') ) {211 firstArg = firstArg.slice(0,-1)212 }213 if ( firstArg.endsWith(')')) {214 //asdf.g215 var cfg = {}216 var fxName = firstArg.split('(')[0]217 cfg.defName = fxName;218 cfg.eval = firstArg;219 try {220 var evalToGet_getArgsStr =221 ['function ' + fxName + '() {',222 'var args = uiUtils.args(arguments);',223 // ' debugger;',224 'return args',225 '}',226 cfg.eval,227 ].join('\n')228 }229 catch (e ) {230 console.error('arsing error on fx input')231 console.error(e)232 //can't process fx eval233 }234 cfg.args = eval(evalToGet_getArgsStr)235 //debugger236 itemCopyAtEnd.args = cfg;237 }else {238 //strange input239 }240 }241 }242 if ( firstWord == 'if' ) {243 valid = true;244 item.fx = 'if'245 // console.clear();246 console.debug('line', lineContent)247 itemCopyAtEnd.args = args;248 if ( lineContent.startsWith('{') &&249 lineContent.endsWith('}') ) {250 //var cfg = eval(lineContent)251 eval('var cfg =' +lineContent)252 console.log('cfg', cfg)253 // debugger254 itemCopyAtEnd.args = [cfg];255 }256 }257 /*258 if ( firstWord == 'click') {259 valid = true;260 item.fx = 'click'261 itemCopyAtEnd.args = [args.join(' ')]262 }*/263 if ( firstWord == 'clickJ') {264 valid = true;265 item.fx = 'clickJ'266 }267 if ( firstWord == 'clickText') {268 valid = true;269 item.fx = 'clickText'270 }271 if ( firstWord == 'log') {272 valid = true;273 item.fx = 'log'274 }275 if ( firstWord == 'status') {276 valid = true;277 item.fx = 'msgStatus'278 }279 if ( firstWord == 'alert') {280 valid = true;281 item.fx = 'alert'282 }283 if ( firstWord == 'set') {284 valid = true;285 item.fx = 'set'286 }287 if ( firstWord == 'wait') {288 valid = true;289 item.fx = 'wait'290 }291 if ( firstWord.slice(0,1) == '~') {292 valid = true;293 item.fx = 'log'294 item.args = [line.slice(1)]295 }296 var isFunctionDef = false;297 if ( rawLine.startsWith('function')) {298 h.evalAltFxMode = true;299 isFunctionDef = true;300 var lastWord = words.slice(-1)301 if ( lastWord == '{') {302 words.pop();303 }304 console.log('wordsfx', words);305 }306 if ( firstWord == 'eval' || firstWord == 'def' || isFunctionDef ) {307 //debugger308 if ( h.evalMode == true ) {309 console.error('line', rawLine)310 throw new Error('double eval mode')311 }312 valid = true;313 item.fx = 'evalFx'314 h.evalMode = true;315 h.hold = item;316 var firstLine = true317 item.lines = [];318 // console.log('words', words.slice(-1))319 itemCopyAtEnd.args=[words.slice(-1)]320 var cfg = {};321 //hanlde case where user has function fx fx1 a; b; c322 //should fx fx1; a; b; c, be gracefulw ith user323 var argsTest = [words.slice(-1)]324 cfg.defName = words.slice(-1) //last word325 var lineCombined = words.join(' ')326 //lineCombined.split('#')[0]327 console.log('parse def', cfg.defName, argsTest, words)328 if ( argsTest.includes(' ')) {329 asdf.g330 }331 var runDefOnInit = false;332 if ( firstWord != 'def' ) { //run if not def333 itemCopyAtEnd.args.push(true)334 runDefOnInit335 }336 // var argsTest = itemCopyAtEnd.args337 var firstArg = words[1]338 //support spaces339 //["def", "deleteTab(tabName_,", "userTabType)"]340 var isFxDef = words[0] == 'def';341 if ( words[0] == 'function') {342 isFxDef = true;343 }344 if ( isFxDef && words.length > 2) {345 console.warn('space in args');346 var lastWord = words.slice(-1)[0]347 if ( lastWord.endsWith(')') ) {348 // debugger349 firstArg = words.slice(1).join('')350 }351 }352 if ( firstArg.includes('(') && firstArg.endsWith(')')) {353 //ensure indexes in porpe rpalce ...) (354 if ( firstArg.endsWith(')')) {355 //asdf.g356 var cfg = {}357 cfg.runDefOnInit = runDefOnInit;358 var fxName = firstArg.split('(')[0]359 cfg.defName = fxName;360 cfg.fxSignature = firstArg;361 itemCopyAtEnd.args = cfg;362 // debugger363 }else {364 //strange input365 }366 }367 //return;368 }369 if ( firstWord == 'endeval' || firstWord == 'end' ) {370 if ( h.evalMode == false ) {371 throw new Error('was not in eval mode')372 }373 valid = false;374 //item.fx = 'set'375 item = h.hold;376 h.evalMode = false;377 }378 if ( rawLine.startsWith('}') && h.evalAltFxMode === true ) {379 if ( h.evalMode == false ) {380 throw new Error('was not in eval mode')381 }382 //asdf.g383 h.evalAltFxMode = false;384 valid = false;385 //item.fx = 'set'386 //line += '/*boo*/' + '}'387 // var lineX = '}; '+' debugger; ' + '/*boo*/' + ''388 // h.hold.lines.push(lineX)389 item = h.hold;390 h.evalMode = false;391 }392 if ( h.evalMode && firstLine != true) {393 h.hold.lines.push(line)394 //h.hold.lines.push('5')395 return;396 }397 if ( valid == false ) {398 return null399 }400 sh.copyProps(itemCopyAtEnd, item)401 item.orig = line;402 return item;403 }404 var lines = sh.each.lines(contents, config);405 self.lines = lines;406 //debugger407 self.proc('lines', lines)408 //console.log(lines)409 sh.printCol(lines)410 // debugger;411 return lines;412 }413 p.loadScript = function loadScript(file) {414 var content = sh.readFile(file)415 console.log('t', content)416 //get lines417 //get function418 //create objet419 var items = p.processTestCSV(content)420 sh.callIfDefined(fxItems, items)421 }422 p.loadScript2 = function loadScript2(file, fxItems, fxFail) {423 uiUtils.getUrl(file, function onGotContnet(content) {424 //console.log('content', content)425 //return;426 var items = p.processTestCSV(content)427 sh.callIfDefined(fxItems, items)428 }, null, function onFail() {429 console.error('failed to load')430 if ( fxFail ) fxFail('failed')431 })432 return;433 var content = sh.readFile(file)434 console.log('t', content)435 //get lines436 //get function437 //create objet438 }439 p.test = function test(config) {440 }441 function defineUtils() {442 var utils = {};443 p.utils = utils;444 utils.getFilePath = function getFilePath(file) {445 var file = self.settings.dir+'/'+ file;446 return file;447 }448 p.proc = function debugLogger() {449 if ( self.silent == true) {450 return;451 }452 sh.sLog(arguments);453 };454 }455 defineUtils()456}457if ( window.isNode != false ) {458 exports.TestCSVConvertor = TestCSVConvertor;459 if (module.parent == null) {460 var instance = new TestCSVConvertor();461 var config = {};462 instance.init(config)463 instance.loadScript('scripts/test.txt')464 instance.test();465 }466} else {467 function testConvertoer() {468 //return469 var instance = new TestCSVConvertor();470 var config = {};471 instance.init(config)472 var currentScript = document.currentScript //just in case user does not set pre-amble473 if ( currentScript ) {474 urlPremable = currentScript.src.split('/').slice(0,-1).join('/')+'/';475 console.info('guessed pre-amble to be', window.preamble)476 }477 instance.loadScript2(urlPremable+'csvScripts/test.txt')478 instance.test();479 }480 testConvertoer();...

Full Screen

Full Screen

TestCSVConvertorDef.js

Source:TestCSVConvertorDef.js Github

copy

Full Screen

1if ( window.isNode != false ) {2 var sh = require('shelpers').shelpers;3 var shelpers = require('shelpers');4}5function TestCSVConvertor() {6 var p = TestCSVConvertor.prototype;7 p = this;8 var self = this;9 self.settings = {};10 self.data = {}11 p.init = function init(config) {12 self.settings = sh.dv(config, {});13 config = self.settings;14 self.method();15 }16 p.method = function method(config) {17 }18 p.processTestCSV = function processTestCSV(contents) {19 var h = {};20 var config = {}21 config.ignore = ['data: WARNING: Skip: ',22 'WARNING: Skipping FS',23 'data: ERROR: Can',24 'child process '25 ]26 config.ignoreComments = true;27 config.fxProc = function parseCmd(item, i, len){28 i += 129 var line = item.trim();30 if ( h.inMultiLineComment ) {31 if ( line.includes('*/') ) {32 var ousideOfComment = line.split('*/')[1]33 h.inMultiLineComment = false;34 line = ousideOfComment; //overkill35 } else {36 //still indie multi line comment mode37 return;38 }39 }40 if ( h.endTest == true ) {41 return;42 }43 if ( line == 'endtest') {44 h.endTest = true;45 console.log('end test early', 'line', i)46 return;47 }48 if ( line.startsWith('#')) {49 return;50 }51 if ( line.startsWith('--')) {52 return;53 }54 if ( line == '' ) {55 return;56 }57 var showItemInput = false;58 if ( showItemInput )59 console.error(i, item)60 item = item.trim();61 var words = item.split(' ');62 var firstWord = words[0];63 firstWord = firstWord.trim();64 var lineContent = words.slice(1).join(' ').trim();65 sh.t = '\t'66 //console.error(sh.t, i, firstWord=='endeval')67 var valid = false;68 var item = {};69 var comment = null;70 /*if ( line.includes('#') ) {71 var split = line.split('#')72 line = split[0]73 comment = split[1]74 }*/ //jquery ids75 if ( line.startsWith('#') ) {76 return;77 }78 if ( line.startsWith('~') == false79 && line.includes('~') ) {80 var split = line.split('~')81 line = split[0]82 comment = split[1]83 }84 if ( line.includes('//') ) {85 var split = line.split('//')86 line = split[0]87 comment = split[1]88 }89 line = line.trim()90 //mulite line comments91 //comments92 if ( line.includes('/*')) {93 h.inMultiLineComment = true;94 var afterComment = line.split('/*')[1];95 var ousideOfComment = afterComment.split('*/')[1]96 if ( afterComment.includes('*/')) {97 h.inMultiLineComment = false;98 line = ousideOfComment; //overkill99 } else {100 //in comment mode101 return;102 }103 }104 /* if ( h.inMultiLineComment ) {105 if ( line.includes('*!/') ) {106 var ousideOfComment = line.split('*!/')[1]107 h.inMultiLineComment = false;108 line = ousideOfComment; //overkill109 } else {110 //still indie multi line comment mode111 return;112 }113 }114*/115 var itemCopyAtEnd = {};116 var words = line.split(' ');117 var args = words.slice(1)118 var userDenotedArgs = false;119 if ( line.includes('; ')) {120 var wordsC = args.join(' ')121 if ( wordsC ) {122 console.log('wordsC', wordsC, wordsC.split('; '))123 }124 words = wordsC.split('; ')125 args = words;126 userDenotedArgs = true;127 }128 if ( line.includes(' |')) {129 var wordsC = args.join(' ')130 if ( wordsC ) {131 console.log('wordsC', wordsC, wordsC.split(' |'))132 }133 words = wordsC.split(' |')134 args = words;135 userDenotedArgs = true;136 }137 itemCopyAtEnd.args = args;138 if ( comment ) {139 itemCopyAtEnd.comment = comment;140 }141 item.index = len+1142 item.line = i143 item.fx = i144 item.args = i145 item.orig = i146 item.comment = i147 item.lines = [];148 var validCmds = [149 'click',150 'waitForShow',151 'waitForHide',152 'verifyHidden',153 'pressEnter',154 'moreThanX',155 'clickOne','setItem','makeGreen',156 'scrollTo','verifyExists',157 'fxasync',158 'fx', 'bookmark'159 ];160 if ( validCmds.includes(firstWord)) {161 valid = true;162 item.fx = firstWord163 itemCopyAtEnd.args = [args.join(' ')]164 if ( userDenotedArgs ) { //do not combine args165 //debugger166 itemCopyAtEnd.args = args;167 }168 if ( firstWord == 'fx') {169 //hanlde case where user has function fx fx1 a; b; c170 //should fx fx1; a; b; c, be gracefulw ith user171 var argsTest = itemCopyAtEnd.args172 var firstArg = argsTest[0].trim()173 if ( firstArg.includes(' ')) {174 //debugger175 var firstArgSplit = firstArg.split(' ')176 argsTest.shift(); //remove first split item177 //firstArgSplit.shift(); //remove fx name178 var argsFixed = firstArgSplit.concat(argsTest)179 itemCopyAtEnd.args = argsFixed;180 };181 if ( firstArg.includes('(') && firstArg.includes(')')) {182 if ( firstArg.endsWith(';') ) {183 firstArg = firstArg.slice(0,-1)184 }185 if ( firstArg.endsWith(')')) {186 //asdf.g187 var cfg = {}188 var fxName = firstArg.split('(')[0]189 cfg.defName = fxName;190 cfg.eval = firstArg;191 try {192 var evalToGet_getArgsStr =193 ['function ' + fxName + '() {',194 'var args = uiUtils.args(arguments);',195 // ' debugger;',196 'return args',197 '}',198 cfg.eval,199 ].join('\n')200 }201 catch (e ) {202 console.error('arsing error on fx input')203 console.error(e)204 //can't process fx eval205 }206 cfg.args = eval(evalToGet_getArgsStr)207 //debugger208 itemCopyAtEnd.args = cfg;209 }else {210 //strange input211 }212 }213 }214 }215 if ( firstWord == 'if' ) {216 valid = true;217 item.fx = 'if'218 // console.clear();219 console.debug('line', lineContent)220 itemCopyAtEnd.args = args;221 if ( lineContent.startsWith('{') &&222 lineContent.endsWith('}') ) {223 //var cfg = eval(lineContent)224 eval('var cfg =' +lineContent)225 console.log('cfg', cfg)226 // debugger227 itemCopyAtEnd.args = [cfg];228 }229 }230/*231 if ( firstWord == 'click') {232 valid = true;233 item.fx = 'click'234 itemCopyAtEnd.args = [args.join(' ')]235 }*/236 if ( firstWord == 'clickJ') {237 valid = true;238 item.fx = 'clickJ'239 }240 if ( firstWord == 'clickText') {241 valid = true;242 item.fx = 'clickText'243 }244 if ( firstWord == 'log') {245 valid = true;246 item.fx = 'log'247 }248 if ( firstWord == 'status') {249 valid = true;250 item.fx = 'msgStatus'251 }252 if ( firstWord == 'alert') {253 valid = true;254 item.fx = 'alert'255 }256 if ( firstWord == 'set') {257 valid = true;258 item.fx = 'set'259 }260 if ( firstWord == 'wait') {261 valid = true;262 item.fx = 'wait'263 }264 if ( firstWord.slice(0,1) == '~') {265 valid = true;266 item.fx = 'log'267 item.args = [line.slice(1)]268 }269 if ( firstWord == 'eval' || firstWord == 'def') {270 //debugger271 if ( h.evalMode == true ) {272 throw new Error('doublel eval mode')273 }274 valid = true;275 item.fx = 'evalFx'276 h.evalMode = true;277 h.hold = item;278 var firstLine = true279 item.lines = [];280 // console.log('words', words.slice(-1))281 itemCopyAtEnd.args=[words.slice(-1)]282 var cfg = {};283 //hanlde case where user has function fx fx1 a; b; c284 //should fx fx1; a; b; c, be gracefulw ith user285 var argsTest = [words.slice(-1)]286 cfg.defName = words.slice(-1) //last word287 var lineCombined = words.join(' ')288 //lineCombined.split('#')[0]289 console.log('parse def', argsTest, words)290 if ( argsTest.includes(' ')) {291 asdf.g292 }293 var runDefOnInit = false;294 if ( firstWord != 'def' ) { //run if not def295 itemCopyAtEnd.args.push(true)296 runDefOnInit297 }298 // var argsTest = itemCopyAtEnd.args299 var firstArg = words[1]300 //support spaces301 //["def", "deleteTab(tabName_,", "userTabType)"]302 if ( words[0] == 'def' && words.length > 2) {303 console.warn('space in args');304 var lastWord = words.slice(-1)[0]305 if ( lastWord.endsWith(')') ) {306 // debugger307 firstArg = words.slice(1).join('')308 }309 }310 if ( firstArg.includes('(') && firstArg.endsWith(')')) {311 //ensure indexes in porpe rpalce ...) (312 if ( firstArg.endsWith(')')) {313 //asdf.g314 var cfg = {}315 cfg.runDefOnInit = runDefOnInit;316 var fxName = firstArg.split('(')[0]317 cfg.defName = fxName;318 cfg.fxSignature = firstArg;319 itemCopyAtEnd.args = cfg;320 // debugger321 }else {322 //strange input323 }324 }325 //return;326 }327 if ( firstWord == 'endeval' || firstWord == 'end' ) {328 if ( h.evalMode == false ) {329 throw new Error('was not in eval mode')330 }331 valid = false;332 //item.fx = 'set'333 item = h.hold;334 h.evalMode = false;335 }336 if ( h.evalMode && firstLine != true) {337 h.hold.lines.push(line)338 //h.hold.lines.push('5')339 return;340 }341 if ( valid == false ) {342 return null343 }344 sh.copyProps(itemCopyAtEnd, item)345 item.orig = line;346 return item;347 }348 var lines = sh.each.lines(contents, config);349 self.lines = lines;350 //debugger351 self.proc('lines', lines)352 //console.log(lines)353 sh.printCol(lines)354 // debugger;355 return lines;356 }357 p.loadScript = function loadScript(file) {358 var content = sh.readFile(file)359 console.log('t', content)360 //get lines361 //get function362 //create objet363 var items = p.processTestCSV(content)364 sh.callIfDefined(fxItems, items)365 }366 p.loadScript2 = function loadScript2(file, fxItems, fxFail) {367 uiUtils.getUrl(file, function onGotContnet(content) {368 //console.log('content', content)369 //return;370 var items = p.processTestCSV(content)371 sh.callIfDefined(fxItems, items)372 }, null, function onFail() {373 console.error('failed to load')374 if ( fxFail ) fxFail('failed')375 })376 return;377 var content = sh.readFile(file)378 console.log('t', content)379 //get lines380 //get function381 //create objet382 }383 p.test = function test(config) {384 }385 function defineUtils() {386 var utils = {};387 p.utils = utils;388 utils.getFilePath = function getFilePath(file) {389 var file = self.settings.dir+'/'+ file;390 return file;391 }392 p.proc = function debugLogger() {393 if ( self.silent == true) {394 return;395 }396 sh.sLog(arguments);397 };398 }399 defineUtils()400}401if ( window.isNode != false ) {402 exports.TestCSVConvertor = TestCSVConvertor;403 if (module.parent == null) {404 var instance = new TestCSVConvertor();405 var config = {};406 instance.init(config)407 instance.loadScript('scripts/test.txt')408 instance.test();409 }410} else {411 function testConvertoer() {412 //return413 var instance = new TestCSVConvertor();414 var config = {};415 instance.init(config)416 var currentScript = document.currentScript //just in case user does not set pre-amble417 if ( currentScript ) {418 urlPremable = currentScript.src.split('/').slice(0,-1).join('/')+'/';419 console.info('guessed pre-amble to be', window.preamble)420 }421 instance.loadScript2(urlPremable+'csvScripts/test.txt')422 instance.test();423 }424 testConvertoer();...

Full Screen

Full Screen

async.chain.js

Source:async.chain.js Github

copy

Full Screen

1'use strict';2const {assert, expect} = require('chai');3const {4 define,5 errors,6} = require('..');7const tests = (opts) => {8 const {9 UserType,10 UserTypeConstructor,11 12 AsyncWOReturn,13 AsyncWOReturnNAR,14 } = opts;15 describe('async construct should return something', async () => {16 let thrown;17 try {18 await new AsyncWOReturn();19 } catch (error) {20 thrown = error;21 }22 it('should throw without return statement', () => {23 expect(thrown).instanceOf(Error);24 expect(thrown).instanceOf(AsyncWOReturn);25 expect(thrown).instanceOf(errors.WRONG_MODIFICATION_PATTERN);26 expect(thrown.message).exist.and.is.a('string');27 assert.equal(thrown.message, 'wrong modification pattern : should inherit from AsyncWOReturn: seems async AsyncWOReturn has no return statement');28 });29 });30 describe('test hook throwModificationError', async () => {31 const thrownError = new Error('aha');32 var thrown;33 const HookThrownType = define('HookThrownType', function (){});34 HookThrownType.registerHook('postCreation', (hookData) => {35 if (!(thrown instanceof Error)) {36 hookData.throwModificationError(thrownError);37 }38 });39 try {40 await new HookThrownType();41 } catch (error) {42 thrown = error;43 }44 it('should throw without return statement', () => {45 expect(thrown).instanceOf(Error);46 expect(thrown).instanceOf(HookThrownType);47 expect(thrown.message).equal('aha');48 });49 });50 describe('async construct should NOT return something', async () => {51 let thrown;52 try {53 thrown = await new AsyncWOReturnNAR();54 } catch (error) {55 thrown = error;56 }57 it('should NOT throw without return statement', () => {58 assert.equal(thrown, undefined);59 });60 });61 describe('async chain check', () => {62 var WrongSyncType = define('WrongSyncType', function (data) {63 const self = new UserType(data);64 return self;65 }, {}, {66 submitStack : true67 });68 var WrongAsyncType = define('WrongAsyncType', async function (data) {69 const self = new UserType(data);70 return self;71 }, {}, {72 submitStack : true,73 });74 var75 syncWAsync1,76 syncWAsync2,77 wrongSyncTypeErr,78 wrongAsyncTypeErr;79 const etalon1 = {80 WithAdditionalSignSign : 'WithAdditionalSignSign',81 WithoutPasswordSign : 'WithoutPasswordSign',82 async1st : '1_1st',83 description : 'UserTypeConstructor',84 email : 'async@gmail.com',85 password : undefined,86 sign : 'async sign',87 async2nd : '1_2nd',88 sync : '1_is',89 async : '1_3rd',90 };91 const etalon2 = {92 WithAdditionalSignSign : 'WithAdditionalSignSign',93 WithoutPasswordSign : 'WithoutPasswordSign',94 async1st : '2_1st',95 description : 'UserTypeConstructor',96 email : 'async@gmail.com',97 password : undefined,98 sign : 'async sign',99 async2nd : '2_2nd',100 sync : '2_is',101 async : '2_3rd',102 };103 var syncWAsyncChained;104 before(function (done) {105 (async () => {106 // debugger;107 // working one108 syncWAsync1 =109 await (110 (111 await (112 await (113 new UserTypeConstructor({114 email : 'async@gmail.com', password : 32123115 })116 .WithoutPassword()117 .WithAdditionalSign('async sign')118 ).AsyncChain1st({async1st : '1_1st'})119 // after promise120 ).AsyncChain2nd({async2nd : '1_2nd'})121 // sync 2 async122 ).Async2Sync2nd({sync : '1_is'})123 ).AsyncChain3rd({async : '1_3rd'});124 // debugger;125 // working two126 syncWAsync2 = await (127 new UserTypeConstructor({128 email : 'async@gmail.com', password : 32123129 })130 .WithoutPassword()131 .WithAdditionalSign('async sign')132 ).AsyncChain1st({async1st : '2_1st'})133 // after promise134 // .then(async function (instance) {135 // return await instance.AsyncChain1st({ async1st: '2_1st' });136 // })137 .then(async function (instance) {138 return await instance.AsyncChain2nd({async2nd : '2_2nd'});139 })140 .then(async function (instance) {141 // sync 2 async142 return await instance.Async2Sync2nd({sync : '2_is'});143 })144 .then(async function (instance) {145 return await instance.AsyncChain3rd({async : '2_3rd'});146 });147 // debugger;148 syncWAsyncChained = await /* (await (await sure */149 new UserTypeConstructor({150 email : 'async@gmail.com',151 password : 32123152 })153 .WithoutPassword()154 .WithAdditionalSign('async sign')155 .AsyncChain1st({async1st : '1st'})156 // after promise157 .AsyncChain2nd({async2nd : '2nd'})158 .Async2Sync2nd({sync : 'is'})159 .AsyncChain3rd({async : '3rd'});160 // debugger;161 done();162 try {163 new WrongSyncType({164 email : 'wrong@gmail.com',165 password : 111166 });167 } catch (err) {168 wrongSyncTypeErr = err;169 }170 try {171 await new WrongAsyncType({172 email : 'wrong@gmail.com',173 password : 111174 });175 } catch (err) {176 wrongAsyncTypeErr = err;177 }178 })();179 });180 it('chain should work', () => {181 assert.deepEqual(etalon1, syncWAsync1.extract());182 assert.deepEqual(etalon2, syncWAsync2.extract());183 const etalon3 = {184 WithAdditionalSignSign : 'WithAdditionalSignSign',185 WithoutPasswordSign : 'WithoutPasswordSign',186 async1st : '1st',187 description : 'UserTypeConstructor',188 email : 'async@gmail.com',189 password : undefined,190 sign : 'async sign',191 async2nd : '2nd',192 sync : 'is',193 async : '3rd',194 };195 assert.deepEqual(etalon3, syncWAsyncChained.extract());196 });197 it('.__stack__ should have seekable definition', () => {198 const stackstart = '<-- creation of [ AsyncChain3rd ] traced -->';199 const stackTrack = [200 '<-- creation of [ Async2Sync2nd ] traced -->',201 '<-- creation of [ AsyncChain2nd ] traced -->',202 '<-- creation of [ AsyncChain1st ] traced -->',203 '<-- creation of [ WithAdditionalSign ] traced -->',204 '<-- creation of [ WithoutPassword ] traced -->',205 '<-- creation of [ UserTypeConstructor ] traced -->'206 ];207 const {208 __stack__209 } = syncWAsyncChained;210 var lastIndex = __stack__.indexOf(stackstart);211 expect(lastIndex).equal(1);212 stackTrack.forEach(line => {213 let newIndex = __stack__.indexOf(line);214 expect(newIndex > 0).is.true;215 expect(newIndex > lastIndex).is.true;216 lastIndex = newIndex;217 });218 expect(__stack__.indexOf('async.chain.js:1') > 0).is.true;219 });220 it('SyncError.stack should have seekable definition', () => {221 const stackstart = '<-- creation of [ WrongSyncType ] traced -->';222 const {223 stack224 } = wrongSyncTypeErr;225 // debugger;226 expect(stack.indexOf(stackstart)).equal(1);227 expect(stack.indexOf('async.chain.js:1') > 0).is.true;228 expect(wrongSyncTypeErr).instanceOf(Error);229 expect(wrongSyncTypeErr).instanceOf(WrongSyncType);230 expect(wrongSyncTypeErr).instanceOf(errors.WRONG_MODIFICATION_PATTERN);231 expect(wrongSyncTypeErr.message).exist.and.is.a('string');232 assert.equal(wrongSyncTypeErr.message, 'wrong modification pattern : should inherit from WrongSyncType but got UserType');233 });234 it('AsyncError.stack should have seekable definition', () => {235 const stackstart = '<-- creation of [ WrongAsyncType ] traced -->';236 wrongAsyncTypeErr;237 const {238 stack239 } = wrongAsyncTypeErr;240 expect(stack.indexOf(stackstart)).equal(1);241 expect(stack.indexOf('async.chain.js:2') > 0).is.true;242 expect(wrongAsyncTypeErr).instanceOf(Error);243 expect(wrongAsyncTypeErr).instanceOf(WrongAsyncType);244 expect(wrongAsyncTypeErr).instanceOf(errors.WRONG_MODIFICATION_PATTERN);245 expect(wrongAsyncTypeErr.message).exist.and.is.a('string');246 assert.equal(wrongAsyncTypeErr.message, 'wrong modification pattern : should inherit from WrongAsyncType but got UserType');247 });248 });249 describe('async chain forced errors types check', () => {250 var sleepError = null;251 var sleepInstance = null;252 var otherSleepInstance = null;253 var anotherSleepInstance = null;254 var syncErrorStart = null;255 var syncErrorEnd = null;256 var straightErrorSync = null;257 var straightErrorAsync = null;258 const argsTest = {argsTest : 123};259 const sleep = (time) => {260 return new Promise((resolve) => setTimeout(resolve, time));261 };262 const SleepType = define('SleepType', async function () {263 await sleep(100);264 this.slept = true;265 return this;266 });267 const AsyncErroredType = SleepType.define('AsyncErroredType', async function (...args) {268 await sleep(100);269 const b = {...args};270 // TypeError271 b.c.async = null;272 });273 const SyncErroredType = SleepType.define('SyncErroredType', function (...args) {274 const b = {...args};275 // TypeError276 b.c.sync = null;277 });278 const AsyncErroredTypeStraight = SleepType.define('AsyncErroredTypeStraight', async function (...args) {279 await sleep(100);280 const b = {...args};281 // TypeError282 b.c.async = null;283 }, {}, {284 blockErrors : false285 });286 const SyncErroredTypeStraight = SleepType.define('SyncErroredTypeStraight', function (...args) {287 const b = {...args};288 // TypeError289 b.c.sync = null;290 }, {}, {291 blockErrors : false292 });293 before(function (done) {294 (async () => {295 sleepInstance = await new SleepType();296 try {297 await sleepInstance.AsyncErroredType(argsTest);298 } catch (error) {299 sleepError = error;300 }301 otherSleepInstance = await new SleepType();302 anotherSleepInstance = await new SleepType();303 try {304 anotherSleepInstance.SyncErroredType(argsTest);305 } catch (error) {306 syncErrorStart = error;307 }308 try {309 anotherSleepInstance.SyncErroredType(argsTest);310 } catch (error) {311 syncErrorEnd = error;312 }313 try {314 await new SleepType().AsyncErroredTypeStraight(argsTest);315 } catch (error) {316 straightErrorAsync = error;317 }318 try {319 await new SleepType().SyncErroredTypeStraight(argsTest);320 } catch (error) {321 straightErrorSync = error;322 }323 done();324 })();325 });326 it('shold have props', () => {327 expect(sleepInstance.slept).is.true;328 expect(sleepError.slept).is.true;329 expect(otherSleepInstance.slept).is.true;330 });331 it('sleepError shold be instanceof Error', () => {332 expect(sleepError).instanceOf(Error);333 });334 it('sleepError shold be instanceof TypeError', () => {335 expect(sleepError).instanceOf(TypeError);336 });337 it('sleepError shold be instanceof SleepType', () => {338 expect(sleepError).instanceOf(SleepType);339 });340 it('sleepError shold be instanceof AsyncErroredType', () => {341 expect(sleepError).instanceOf(AsyncErroredType);342 });343 it('sleepError expect args of SyncErroredType', () => {344 expect(sleepError.__args__[0]).equal(argsTest);345 });346 it('straightErrorAsync expect args of AsyncErroredTypeStraight', () => {347 expect(straightErrorAsync.__args__).equal(undefined);348 });349 it('sleepError shold be instanceof plain Error only', () => {350 expect(straightErrorAsync).instanceOf(Error);351 expect(straightErrorAsync).instanceOf(TypeError);352 expect(straightErrorAsync).not.instanceOf(AsyncErroredTypeStraight);353 });354 it('straightErrorSync expect args of SyncErroredTypeStraight', () => {355 expect(straightErrorSync.__args__).equal(undefined);356 });357 it('sleepError shold be instanceof plain Error only', () => {358 expect(straightErrorSync).instanceOf(Error);359 expect(straightErrorSync).instanceOf(TypeError);360 expect(straightErrorSync).not.instanceOf(SyncErroredTypeStraight);361 });362 it('sleepInstance shold be instanceof SleepType', () => {363 expect(sleepInstance).instanceOf(SleepType);364 });365 it('sleepInstance shold be instanceof Error', () => {366 expect(sleepInstance).instanceOf(Error);367 });368 it('sleepInstance shold be instanceof TypeError', () => {369 expect(sleepInstance).instanceOf(TypeError);370 });371 it('otherSleepInstance shold be instanceof SleepType', () => {372 expect(otherSleepInstance).instanceOf(SleepType);373 });374 it('otherSleepInstance sholdn\'t be instanceof Error', () => {375 expect(otherSleepInstance).not.instanceOf(Error);376 });377 it('otherSleepInstance sholdn\'t be instanceof TypeError', () => {378 expect(otherSleepInstance).not.instanceOf(TypeError);379 });380 it('anotherSleepInstance shold be instanceof SleepType', () => {381 const insof = anotherSleepInstance instanceof SleepType;382 expect(insof).is.true;383 });384 it('anotherSleepInstance shold be instanceof Error', () => {385 expect(anotherSleepInstance).instanceOf(Error);386 });387 it('anotherSleepInstance shold be instanceof TypeError', () => {388 expect(anotherSleepInstance).instanceOf(TypeError);389 });390 it('sleepInstance sholdn\'t be instanceof AsyncErroredType', () => {391 expect(sleepInstance).not.instanceOf(AsyncErroredType);392 });393 it('syncErrorStart shold be instanceof Error', () => {394 expect(syncErrorStart).instanceOf(Error);395 });396 it('syncErrorStart shold be instanceof TypeError', () => {397 expect(syncErrorStart).instanceOf(TypeError);398 });399 it('syncErrorStart shold be instanceof SyncErroredType', () => {400 expect(syncErrorStart).instanceOf(SyncErroredType);401 });402 it('syncErrorEnd expect args of SyncErroredType', () => {403 expect(syncErrorStart.__args__[0]).equal(argsTest);404 });405 it('syncErrorEnd shold be instanceof Error', () => {406 expect(syncErrorEnd).instanceOf(Error);407 });408 it('syncErrorEnd shold be instanceof TypeError', () => {409 expect(syncErrorEnd).instanceOf(TypeError);410 });411 it('syncErrorEnd shold be instanceof SyncErroredType', () => {412 expect(syncErrorEnd).instanceOf(SyncErroredType);413 });414 it('syncErrorEnd expect args of SyncErroredType', () => {415 expect(syncErrorEnd.__args__[0]).equal(argsTest);416 });417 });418};...

Full Screen

Full Screen

helper.js

Source:helper.js Github

copy

Full Screen

1//npm -y init2//npm i express3//npm install nodemon --save-dev4//had to add "start" : "nodemon helper.js" for some reason5// // instructions pt16// Write a command line application called helper.js which Scully can use to find all7// sightings within a given state. Have the application take one command line argument8// which contains the name of the state and log to the console a summary of each 9// sighting in that state. For example:10// =====================11// Date: 1/31/15/ 21:3012// City: Conway13// State: SC14// Shape: Fireball15// Duration: 5 Minutes16// ====================17// Date: 1/27/15 20:0018// City: Myrtle Beach19// State: SC20// Shape: Changing21// Duration: 10 Seconds22// ====================23//Rich: okay, i have an external json file, i wonder how i open it24// https://stackabuse.com/reading-and-writing-json-files-with-node-js/25const fs = require('fs');26let rawdata = fs.readFileSync('sightings.json');27let sightings = JSON.parse(rawdata);28// console.log(sightings);29//Awesome! logs it just fine! Cool now I don't have to paste the sightings data in here.30//from above31//Have the application take one command line argument32//which contains the name of the state33//so something like state=ca?34//okay, need to figure out how to take command line arguments...35// https://nodejs.dev/learn/nodejs-accept-arguments-from-the-command-line36//example command37// node app.js state=ca38//this is how you get arguments passed, arguments start at 2 in the array index returned by argv39// const argsTest = process.argv.slice(2)40// console.log(argsTest)41//returns [ '--state=ca' ]42//args[0] is name=joe, and you need to parse it. 43//The best way to do so is by using the minimist library, which helps dealing with arguments:44//install it45//npm i minimist46//then use this syntax for the args, the --doubledash47//node helper.js --state=ca48// const argsTest = require('minimist')(process.argv.slice(2))49// console.log(argsTest['state'])50//returns ca51//seems to work!52//whats next?53// log to the console a summary of each sighting in that state. For example:54// =====================55// Date: 1/31/15/ 21:3056// City: Conway57// State: SC58// Shape: Fireball59// Duration: 5 Minutes60// =====================61//okay, sightings.json is an array, the first element is like this62// {63// "date": "1/31/15 22:00",64// "city": "Lancaster",65// "state": "CA",66// "shape": "Sphere",67// "duration": "several minutes",68// "description": "Orange lights."69// },70//lets pull our arguments71let arguments = require('minimist')(process.argv.slice(2))72let state = arguments['state']73//so we need a for of to loop through the array74//if the state is same as arg, display it using logs75function sightingsByState() {76 if (state.length != 2) {77 console.log("State must be two characters")78 } else {79 for (let sighting of sightings) {80 if (sighting.state === state.toUpperCase()) {81 console.log(`=====================`)82 console.log(`Date: ${sighting.date}`)83 console.log(`City: ${sighting.city}`)84 console.log(`State: ${sighting.state}`)85 console.log(`Shape: ${sighting.shape}`)86 console.log(`Duration: ${sighting.duration}`)87 // console.log(`Description: ${sighting.description}`)88 }89 }90 console.log(`=====================`)91 }92}93//to make this work, uncomment this94// sightingsByState()95// and run it with this in terminal96// node helper.js --state=ca97//next exercise98// Find all the UFO sightings in that state (arkansas) for the past year to help out your new colleagues.99let year = arguments['year'] //needs to be two digit parameter from user100// to do this we need to parse the year string101// "date": "1/31/15 22:00",102//hmmm how do we pull the year.... probably by parsing the string up until the first space103//use indexOf(" ") for this, will return the location of the first space104function sightingsByStateAndYear() {105 if (state.length != 2 || year.length != 2) {106 console.log("Year must be a two digit parameter, state must be two characters") 107 //tests for wrong year, state , if true then errors108 } else {109 for (let sighting of sightings) {110 let space = sighting.date.indexOf(" ") //index of the space111 let yearString = sighting.date.slice(space - 2, space) //slice of the date string for year112 //if with and113 if (sighting.state === state.toUpperCase() && year === parseInt(yearString)) {114 console.log(`=====================`)115 console.log(`Date: ${sighting.date}`)116 console.log(`City: ${sighting.city}`)117 console.log(`State: ${sighting.state}`)118 console.log(`Shape: ${sighting.shape}`)119 console.log(`Duration: ${sighting.duration}`)120 // console.log(`Description: ${sighting.description}`)121 }122 }123 console.log(`=====================`)124 }125}126//uncomment this to run it127// sightingsByStateAndYear()128//use this to test in terminal...

Full Screen

Full Screen

index.js

Source:index.js Github

copy

Full Screen

...3const API = require('..')4const api = new API()5describe('args', function () {6 it('base', function () {7 function argsTest() {8 const options = api.args(arguments, ['offset', 'count'])9 assert.deepStrictEqual(options, {offset: 1, count: 2, xor: true})10 }11 argsTest(1, 2, {xor: true})12 argsTest(1, {xor: true, count: 2})13 argsTest({offset: 1, xor: true, count: 2})14 })15 it('default value', function () {16 assert.deepStrictEqual(api.args(['xovel'], ['name', 'type=1']), {name: 'xovel', type: 1})17 })18 it('ignore undefined args', function () {19 function argsTest() {20 const options = api.args(arguments, ['offset', 'count', 'mode'])21 assert.deepStrictEqual(options, {offset: 1, mode: 'fire'})22 }23 argsTest(1, ({}).m, 'fire')24 argsTest(1, undefined, 'fire')25 })26 it('ignore undefined names', function () {27 function argsTest() {28 const options = api.args(arguments, [, 'count', 'mode'])29 assert.deepStrictEqual(options, {count: 2, mode: 'fire'})30 }31 argsTest(1, 2, 'fire')32 })33})34describe('detect type', function () {35 it('It should return undefined', function () {36 assert.deepStrictEqual(api.type(), 'undefined')37 assert.deepStrictEqual(api.type({}.x), 'undefined')38 assert.deepStrictEqual(api.type(this.y), 'undefined')39 })40 it('It should return array', function () {41 assert.deepStrictEqual(api.type([]), 'array')42 })43 it('It should return object', function () {44 assert.deepStrictEqual(api.type({}), 'object')45 assert.deepStrictEqual(api.type(Object.create(null)), 'object')...

Full Screen

Full Screen

utilsTest.js

Source:utilsTest.js Github

copy

Full Screen

1/**2 * Script to test Utils methods3 */4 5 let utils = require("./utils.js")6 let resources = utils.loadResources();7 console.log("============> RESOURCES")8 9 resources.forEach(function(value, key) {10 let service_type = value.service_type11 let region = value.region12 let guid = value.id13 let name = value.name14 console.log(`${service_type}, ${region}, ${guid}, ${name}`)15 })16 console.log("============> RESOURCE GROUPS")17 let resource_groups = utils.loadResourceGroups()18 resource_groups.forEach(function(value, key) {19 console.log(`${value.id}, ${value.name}`)20 })21 console.log("============> ACCESS GROUPS")22 let access_groups = utils.loadAccessGroups()23 24 access_groups.forEach(function(value, key) {25 console.log(`${value.id}, ${value.name}`)26 console.log(`MEMBERS: ${value.members}`)27 })28 console.log("============> USERS")29 let users = utils.loadUsers()30 31 users.forEach(function(value, key) {32 console.log(`${value.id}, ${value.email}, ${value.name}`)33 console.log("=====>>>GROUPS INSERTED: " + utils.groupsUserBelongsTo(value, access_groups))34 })35 36 console.log("============> POLICIES")37 let policies = utils.loadPolicies()38 console.log(policies)39 policies.forEach(function(value, key) {40 console.log(value)41 })42 console.log("Loaded "+ policies.size + " policies.")43console.log("========================>>> POLICIES FOR RESOURCES")44resources.forEach(function (resource, key) {45 console.log("=================== RESOURCE: " + resource.name)46 let policiesByResource = utils.policiesByResource(resource, policies)47 console.log(policiesByResource) 48 console.log("-----------------------------------------------------")49})50console.log("=========================>>> POLICIES FOR USERS") 51 users.forEach(function(user, key) {52 console.log("======================== USER: " + user.email)53 let policiesForUser = utils.policiesForUser(user, access_groups, policies)54 console.log(policiesForUser) 55 console.log("-----------------------------------------------------")56 })57 58console.log("============================>>> ADMINISTRATOR POLICIES ") 59console.log(utils.policiesForRole("Administrator", policies))60let argsTest = ["node", "myProgram.js", "--csv", "param1", "param2"]61console.log("============================>>>>>>> EXTRACT PARAMETERS")62console.log(process.argv)63let argsRet = utils.extractParameters(argsTest)64console.log(`Format=${argsRet.format} Params=${argsRet.args}`)65argsTest = ["node","myProgram.js", "param0", "param1", "param2"]66argsRet = utils.extractParameters(argsTest)67console.log(`Format=${argsRet.format} Params=${argsRet.args}`)68argsTest = ["node","myProgram.js", "param0", "param1"]69argsRet = utils.extractParameters(argsTest)70console.log(`Format=${argsRet.format} Params=${argsRet.args}`)71argsTest = ["node","myProgram.js", "--json", "param1"]72argsRet = utils.extractParameters(argsTest)73console.log(`Format=${argsRet.format} Params=${argsRet.args}`)74argsTest = ["node","myProgram.js", "param0"]75argsRet = utils.extractParameters(argsTest)76console.log(`Format=${argsRet.format} Params=${argsRet.args}`)77console.log("============> POLICIES FOR VPC")78 policies.forEach(function(value, key) {79 if(value.service_type == "is")80 console.log(value)81 })82 resources.forEach(function (resource, key) {83 console.log(resource)...

Full Screen

Full Screen

object-keys.js

Source:object-keys.js Github

copy

Full Screen

...47x.__proto__ = [1, 2, 3];48assertEquals(Object.keys(x), []);49assertEquals(Object.keys(function () {}), []);50assertEquals('string', typeof(Object.keys([1])[0]));51function argsTest(a, b, c) {52 assertEquals(['0', '1', '2'], Object.keys(arguments));53}54argsTest(1, 2, 3);55var literal = {a: 1, b: 2, c: 3};56var keysBefore = Object.keys(literal);57assertEquals(['a', 'b', 'c'], keysBefore);58keysBefore[0] = 'x';59var keysAfter = Object.keys(literal);60assertEquals(['a', 'b', 'c'], keysAfter);...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1describe('My First Test', function() {2 it('Does not do much!', function() {3 cy.contains('type').click()4 cy.url().should('include', '/commands/actions')5 cy.get('.action-email')6 .type('

Full Screen

Using AI Code Generation

copy

Full Screen

1describe('Test', () => {2 it('should test', () => {3 cy.argsTest();4 });5});6Cypress.Commands.add('argsTest', () => {7 cy.log('argsTest');8});9{10 "env": {11 }12}13Browser: Electron 61 (headless)14 ✓ should test (76ms)15 1 passing (1s)16 (Run Starting)

Full Screen

Using AI Code Generation

copy

Full Screen

1describe('Test', () => {2 it('test', () => {3 cy.argsTest('test')4 })5})6Cypress.Commands.add('argsTest', (arg1, arg2) => {7 cy.log(arg1)8 cy.log(arg2)9})10{11}12Cypress.Commands.add('argsTest', (arg1, arg2) => {13 cy.log(arg1)14 cy.log(arg2)15}, { prevSubject: false })16Cypress.Commands.add('argsTest', (arg1, arg2) => {17 cy.log(arg1)18 cy.log(arg2)19}, { prevSubject: true })20Cypress.Commands.add('argsTest', (arg1, arg2) => {21 cy.log(arg1)22 cy.log(arg2)23}, { prevSubject: 'optional' })24Cypress.Commands.add('argsTest', (arg1, arg2) => {25 cy.log(arg1)26 cy.log(arg2)27}, { prevSubject: 'element' })28Cypress.Commands.add('argsTest', (arg1, arg2) => {29 cy.log(arg1)30 cy.log(arg2)31}, { prevSubject: 'window' })32Cypress.Commands.add('argsTest', (arg1, arg2) => {33 cy.log(arg1)34 cy.log(arg2)35}, { prevSubject: 'document' })36Cypress.Commands.add('argsTest', (arg1, arg2) => {37 cy.log(arg1)38 cy.log(arg2)39}, { prevSubject: ['window', 'document'] })40Cypress.Commands.add('argsTest', (arg1, arg2) => {41 cy.log(arg1)42 cy.log(arg2)43}, { prevSubject: ['element', 'optional'] })44Cypress.Commands.add('argsTest', (arg1, arg2) => {45 cy.log(arg1)46 cy.log(arg2)47}, { prevSubject: ['element', 'optional', 'window', 'document'] })48Cypress.Commands.add('argsTest', (arg1, arg2) => {49 cy.log(arg1)

Full Screen

Using AI Code Generation

copy

Full Screen

1describe('My first test', function() {2 it('Does not do much!', function() {3 cy.argsTest('hello world')4 })5})6Cypress.Commands.add('argsTest', (arg) => {7 console.log(arg)8})9{10 "env": {11 }12}13Cypress.env('test')14module.exports = (on, config) => {15}16{17 "env": {18 }19}20Cypress.env('test')21module.exports = (on, config) => {22}23{24 "env": {25 }26}27Cypress.env('test')28module.exports = (on, config) => {29}30{31 "env": {32 }33}34Cypress.env('test')35module.exports = (on, config) => {36}37{38 "env": {39 }40}41Cypress.env('test')

Full Screen

Using AI Code Generation

copy

Full Screen

1describe('Test', () => {2 it('should run', () => {3 cy.argsTest();4 });5});6const argsTest = require('cypress-terminal-report/src/installLogsPrinter');7module.exports = (on, config) => {8 on('task', {9 });10};11Cypress.Commands.add('argsTest', () => {12 return cy.task('argsTest');13});14import './commands';15{16 "reporterOptions": {17 }18}

Full Screen

Using AI Code Generation

copy

Full Screen

1it('Test', () => {2 cy.argsTest('test')3})4Cypress.Commands.add('argsTest', (arg) => {5 cy.log(arg)6})7{8}

Full Screen

Using AI Code Generation

copy

Full Screen

1describe('Test', () => {2 it('test', () => {3 cy.argsTest('test')4 })5})6Cypress.Commands.add('argsTest', (name) => {7 cy.log(name)8})9{10}11module.exports = (on, config) => {12 on('task', {13 argsTest(name) {14 console.log(name)15 }16 })17}

Full Screen

Using AI Code Generation

copy

Full Screen

1describe('Test', () => {2 it('Test', () => {3 cy.argsTest('test');4 });5});6Cypress.Commands.add('argsTest', (arg) => {7 cy.log(arg);8});9Cypress.Commands.add('argsTest', (...args) => {10 cy.log(args);11});12describe('Test', () => {13 it('Test', () => {14 cy.argsTest('test', 'test2', 'test3');15 });16});

Full Screen

Cypress Tutorial

Cypress is a renowned Javascript-based open-source, easy-to-use end-to-end testing framework primarily used for testing web applications. Cypress is a relatively new player in the automation testing space and has been gaining much traction lately, as evidenced by the number of Forks (2.7K) and Stars (42.1K) for the project. LambdaTest’s Cypress Tutorial covers step-by-step guides that will help you learn from the basics till you run automation tests on LambdaTest.

Chapters:

  1. What is Cypress? -
  2. Why Cypress? - Learn why Cypress might be a good choice for testing your web applications.
  3. Features of Cypress Testing - Learn about features that make Cypress a powerful and flexible tool for testing web applications.
  4. Cypress Drawbacks - Although Cypress has many strengths, it has a few limitations that you should be aware of.
  5. Cypress Architecture - Learn more about Cypress architecture and how it is designed to be run directly in the browser, i.e., it does not have any additional servers.
  6. Browsers Supported by Cypress - Cypress is built on top of the Electron browser, supporting all modern web browsers. Learn browsers that support Cypress.
  7. Selenium vs Cypress: A Detailed Comparison - Compare and explore some key differences in terms of their design and features.
  8. Cypress Learning: Best Practices - Take a deep dive into some of the best practices you should use to avoid anti-patterns in your automation tests.
  9. How To Run Cypress Tests on LambdaTest? - Set up a LambdaTest account, and now you are all set to learn how to run Cypress tests.

Certification

You can elevate your expertise with end-to-end testing using the Cypress automation framework and stay one step ahead in your career by earning a Cypress certification. Check out our Cypress 101 Certification.

YouTube

Watch this 3 hours of complete tutorial to learn the basics of Cypress and various Cypress commands with the Cypress testing at LambdaTest.

Run Cypress automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful