Advertisement
Guest User

Untitled

a guest
Jul 15th, 2013
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 34.68 KB | None | 0 0
  1.  
  2. svuser@PXXXWIN7VM /c/work/mozmill
  3. $ mozmill -m mutt/mutt/tests/js/assertions/tests.ini -b /c/Mozilla/Nightly/firefox-25.0a1.en-US.win32/firefox/firefox.exe --console-level=DEBUG
  4. DEBUG | register | true
  5. DEBUG | mozmill.startRunner | true
  6. DEBUG | mozmill.setModule | "currentModule"
  7. DEBUG | mozmill.setState | "currentState"
  8. TEST-START | expect_assert.js | testExpect
  9. DEBUG | mozmill.setTest | {
  10. "name": "testExpect",
  11. "filename": "c:\\work\\mozmill\\mutt\\mutt\\tests\\js\\assertions\\expect_assert.js"
  12. }
  13. DEBUG | Step Pass: {
  14. "pass": {
  15. "message": "expect.pass for [has to pass] - 'true' should equal 'true'",
  16. "lineNumber": 102,
  17. "functionName": "testExpect",
  18. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  19. }
  20. }
  21. DEBUG | Step Pass: {
  22. "pass": {
  23. "message": "expect.fail for [has to fail] - 'false' should equal 'false'",
  24. "lineNumber": 102,
  25. "functionName": "testExpect",
  26. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  27. }
  28. }
  29. DEBUG | Step Pass: {
  30. "pass": {
  31. "message": "expect.ok for [true, true has to pass] - 'true' should equal 'true'",
  32. "lineNumber": 102,
  33. "functionName": "testExpect",
  34. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  35. }
  36. }
  37. DEBUG | Step Pass: {
  38. "pass": {
  39. "message": "expect.ok for [false, false has to fail] - 'false' should equal 'false'",
  40. "lineNumber": 102,
  41. "functionName": "testExpect",
  42. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  43. }
  44. }
  45. DEBUG | Step Pass: {
  46. "pass": {
  47. "message": "expect.ok for [0, 0 has to fail] - 'false' should equal 'false'",
  48. "lineNumber": 102,
  49. "functionName": "testExpect",
  50. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  51. }
  52. }
  53. DEBUG | Step Pass: {
  54. "pass": {
  55. "message": "expect.ok for [1, 1 has to pass] - 'true' should equal 'true'",
  56. "lineNumber": 102,
  57. "functionName": "testExpect",
  58. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  59. }
  60. }
  61. DEBUG | Step Pass: {
  62. "pass": {
  63. "message": "expect.ok for [2, 2 has to pass] - 'true' should equal 'true'",
  64. "lineNumber": 102,
  65. "functionName": "testExpect",
  66. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  67. }
  68. }
  69. DEBUG | Step Pass: {
  70. "pass": {
  71. "message": "expect.ok for [, empty string has to fail] - 'false' should equal 'false'",
  72. "lineNumber": 102,
  73. "functionName": "testExpect",
  74. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  75. }
  76. }
  77. DEBUG | Step Pass: {
  78. "pass": {
  79. "message": "expect.ok for [test, non-empty string has to pass] - 'true' should equal 'true'",
  80. "lineNumber": 102,
  81. "functionName": "testExpect",
  82. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  83. }
  84. }
  85. DEBUG | Step Pass: {
  86. "pass": {
  87. "message": "expect.ok for [, null has to fail] - 'false' should equal 'false'",
  88. "lineNumber": 102,
  89. "functionName": "testExpect",
  90. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  91. }
  92. }
  93. DEBUG | Step Pass: {
  94. "pass": {
  95. "message": "expect.ok for [, undefined has to fail] - 'false' should equal 'false'",
  96. "lineNumber": 102,
  97. "functionName": "testExpect",
  98. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  99. }
  100. }
  101. DEBUG | Step Pass: {
  102. "pass": {
  103. "message": "expect.equal for [true, true, Values are equal] - 'true' should equal 'true'",
  104. "lineNumber": 102,
  105. "functionName": "testExpect",
  106. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  107. }
  108. }
  109. DEBUG | Step Pass: {
  110. "pass": {
  111. "message": "expect.equal for [true, false, Values are not equal] - 'false' should equal 'false'",
  112. "lineNumber": 102,
  113. "functionName": "testExpect",
  114. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  115. }
  116. }
  117. DEBUG | Step Pass: {
  118. "pass": {
  119. "message": "expect.equal for [, , Types are not equal] - 'false' should equal 'false'",
  120. "lineNumber": 102,
  121. "functionName": "testExpect",
  122. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  123. }
  124. }
  125. DEBUG | Step Pass: {
  126. "pass": {
  127. "message": "expect.equal for [, false, Types are not equal] - 'false' should equal 'false'",
  128. "lineNumber": 102,
  129. "functionName": "testExpect",
  130. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  131. }
  132. }
  133. DEBUG | Step Pass: {
  134. "pass": {
  135. "message": "expect.equal for [str, str, Strings are equal] - 'true' should equal 'true'",
  136. "lineNumber": 102,
  137. "functionName": "testExpect",
  138. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  139. }
  140. }
  141. DEBUG | Step Pass: {
  142. "pass": {
  143. "message": "expect.deepEqual for [[object Object], [object Object], Objects are equal] - 'true' should equal 'true'",
  144. "lineNumber": 102,
  145. "functionName": "testExpect",
  146. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  147. }
  148. }
  149. DEBUG | Step Pass: {
  150. "pass": {
  151. "message": "expect.deepEqual for [3,4, 3,4, Arrays are equal] - 'true' should equal 'true'",
  152. "lineNumber": 102,
  153. "functionName": "testExpect",
  154. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  155. }
  156. }
  157. DEBUG | Step Pass: {
  158. "pass": {
  159. "message": "expect.deepEqual for [5,4, 4,5, Arrays are not equal] - 'false' should equal 'false'",
  160. "lineNumber": 102,
  161. "functionName": "testExpect",
  162. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  163. }
  164. }
  165. DEBUG | Step Pass: {
  166. "pass": {
  167. "message": "expect.deepEqual for [str, str, Strings are equal] - 'true' should equal 'true'",
  168. "lineNumber": 102,
  169. "functionName": "testExpect",
  170. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  171. }
  172. }
  173. DEBUG | Step Pass: {
  174. "pass": {
  175. "message": "expect.deepEqual for [, false, Objects are not equal] - 'false' should equal 'false'",
  176. "lineNumber": 102,
  177. "functionName": "testExpect",
  178. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  179. }
  180. }
  181. DEBUG | Step Pass: {
  182. "pass": {
  183. "message": "expect.notEqual for [true, true, Values are equal] - 'false' should equal 'false'",
  184. "lineNumber": 102,
  185. "functionName": "testExpect",
  186. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  187. }
  188. }
  189. DEBUG | Step Pass: {
  190. "pass": {
  191. "message": "expect.notEqual for [true, false, Values are not equal] - 'true' should equal 'true'",
  192. "lineNumber": 102,
  193. "functionName": "testExpect",
  194. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  195. }
  196. }
  197. DEBUG | Step Pass: {
  198. "pass": {
  199. "message": "expect.notEqual for [, , Types are not equal] - 'true' should equal 'true'",
  200. "lineNumber": 102,
  201. "functionName": "testExpect",
  202. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  203. }
  204. }
  205. DEBUG | Step Pass: {
  206. "pass": {
  207. "message": "expect.notDeepEqual for [[object Object], [object Object], Objects are not equal] - 'true' should equal 'true'",
  208. "lineNumber": 102,
  209. "functionName": "testExpect",
  210. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  211. }
  212. }
  213. DEBUG | Step Pass: {
  214. "pass": {
  215. "message": "expect.notDeepEqual for [[object Object], [object Object], Objects are equal] - 'false' should equal 'false'",
  216. "lineNumber": 102,
  217. "functionName": "testExpect",
  218. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  219. }
  220. }
  221. DEBUG | Step Pass: {
  222. "pass": {
  223. "message": "expect.match for [Mozilla, /Mozilla/, regex matches string] - 'true' should equal 'true'",
  224. "lineNumber": 102,
  225. "functionName": "testExpect",
  226. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  227. }
  228. }
  229. DEBUG | Step Pass: {
  230. "pass": {
  231. "message": "expect.match for [Mozilla, /mozilla/, regex does not match string] - 'false' should equal 'false'",
  232. "lineNumber": 102,
  233. "functionName": "testExpect",
  234. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  235. }
  236. }
  237. DEBUG | Step Pass: {
  238. "pass": {
  239. "message": "expect.match for [Mozilla, /mozilla/i, regex matches string] - 'true' should equal 'true'",
  240. "lineNumber": 102,
  241. "functionName": "testExpect",
  242. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  243. }
  244. }
  245. DEBUG | Step Pass: {
  246. "pass": {
  247. "message": "expect.notMatch for [Mozilla, /firefox/, regex does not match string] - 'true' should equal 'true'",
  248. "lineNumber": 102,
  249. "functionName": "testExpect",
  250. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  251. }
  252. }
  253. DEBUG | Step Pass: {
  254. "pass": {
  255. "message": "Types are not equal - 'undefined' should not equal 'null'",
  256. "lineNumber": 117,
  257. "functionName": "testAssert/<",
  258. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  259. }
  260. }
  261. DEBUG | Step Pass: {
  262. "pass": {
  263. "message": " (AssertionError). assert.notEqual for [, , Types are not equal]",
  264. "lineNumber": 118,
  265. "functionName": "testAssert",
  266. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  267. }
  268. }
  269. DEBUG | Step Pass: {
  270. "pass": {
  271. "message": "Objects are not equal - '{}' should not equal '{\"a\":4}'",
  272. "lineNumber": 117,
  273. "functionName": "testAssert/<",
  274. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  275. }
  276. }
  277. DEBUG | Step Pass: {
  278. "pass": {
  279. "message": " (AssertionError). assert.notDeepEqual for [[object Object], [object Object], Objects are not equal]",
  280. "lineNumber": 118,
  281. "functionName": "testAssert",
  282. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  283. }
  284. }
  285. DEBUG | Step Pass: {
  286. "pass": {
  287. "message": " (AssertionError). assert.notDeepEqual for [[object Object], [object Object], Objects are equal]",
  288. "lineNumber": 122,
  289. "functionName": "testAssert",
  290. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  291. }
  292. }
  293. DEBUG | Step Pass: {
  294. "pass": {
  295. "message": "regex matches string - '/Mozilla/' matches for 'Mozilla'",
  296. "lineNumber": 117,
  297. "functionName": "testAssert/<",
  298. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  299. }
  300. }
  301. DEBUG | Step Pass: {
  302. "pass": {
  303. "message": " (AssertionError). assert.match for [Mozilla, /Mozilla/, regex matches string]",
  304. "lineNumber": 118,
  305. "functionName": "testAssert",
  306. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  307. }
  308. }
  309. DEBUG | Step Pass: {
  310. "pass": {
  311. "message": " (AssertionError). assert.match for [Mozilla, /mozilla/, regex does not match string]",
  312. "lineNumber": 122,
  313. "functionName": "testAssert",
  314. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  315. }
  316. }
  317. DEBUG | Step Pass: {
  318. "pass": {
  319. "message": "regex matches string - '/mozilla/i' matches for 'Mozilla'",
  320. "lineNumber": 117,
  321. "functionName": "testAssert/<",
  322. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  323. }
  324. }
  325. DEBUG | Step Pass: {
  326. "pass": {
  327. "message": " (AssertionError). assert.match for [Mozilla, /mozilla/i, regex matches string]",
  328. "lineNumber": 118,
  329. "functionName": "testAssert",
  330. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  331. }
  332. }
  333. DEBUG | Step Pass: {
  334. "pass": {
  335. "message": "regex does not match string - '/firefox/' doesn't match for 'Mozilla'",
  336. "lineNumber": 117,
  337. "functionName": "testAssert/<",
  338. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  339. }
  340. }
  341. DEBUG | Step Pass: {
  342. "pass": {
  343. "message": " (AssertionError). assert.notMatch for [Mozilla, /firefox/, regex does not match string]",
  344. "lineNumber": 118,
  345. "functionName": "testAssert",
  346. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  347. }
  348. }
  349. DEBUG | Step Pass: {
  350. "pass": {
  351. "message": " (AssertionError). assert.notMatch for [Mozilla, /Mozilla/, regex matches string]",
  352. "lineNumber": 122,
  353. "functionName": "testAssert",
  354. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  355. }
  356. }
  357. DEBUG | Step Pass: {
  358. "pass": {
  359. "message": ". Throws an error",
  360. "lineNumber": 117,
  361. "functionName": "testAssert/<",
  362. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  363. }
  364. }
  365. DEBUG | Step Pass: {
  366. "pass": {
  367. "message": " (AssertionError). assert.throws for [function () { throw new Error(); }, , Throws an error]",
  368. "lineNumber": 118,
  369. "functionName": "testAssert",
  370. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  371. }
  372. }
  373. DEBUG | Step Pass: {
  374. "pass": {
  375. "message": " (Error). Throws a specific error",
  376. "lineNumber": 117,
  377. "functionName": "testAssert/<",
  378. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  379. }
  380. }
  381. DEBUG | Step Pass: {
  382. "pass": {
  383. "message": " (AssertionError). assert.throws for [function () { throw new Error(); }, function Error() {\n [native code]\n}, Throws a specific error]",
  384. "lineNumber": 118,
  385. "functionName": "testAssert",
  386. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  387. }
  388. }
  389. DEBUG | Step Pass: {
  390. "pass": {
  391. "message": " (Error). assert.throws for [function () { throw new Error(); }, function Err() {\n // exception used for testing throws()\n}, Catches the wrong error]",
  392. "lineNumber": 122,
  393. "functionName": "testAssert",
  394. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  395. }
  396. }
  397. DEBUG | Step Pass: {
  398. "pass": {
  399. "message": " (AssertionError). assert.throws for [function () { }, , Throws no error]",
  400. "lineNumber": 122,
  401. "functionName": "testAssert",
  402. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  403. }
  404. }
  405. DEBUG | Step Pass: {
  406. "pass": {
  407. "message": ". Throws no error",
  408. "lineNumber": 117,
  409. "functionName": "testAssert/<",
  410. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  411. }
  412. }
  413. DEBUG | Step Pass: {
  414. "pass": {
  415. "message": " (AssertionError). assert.doesNotThrow for [function () { }, , Throws no error]",
  416. "lineNumber": 118,
  417. "functionName": "testAssert",
  418. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  419. }
  420. }
  421. DEBUG | Step Pass: {
  422. "pass": {
  423. "message": " (Error). Throws no specific error",
  424. "lineNumber": 117,
  425. "functionName": "testAssert/<",
  426. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  427. }
  428. }
  429. DEBUG | Step Pass: {
  430. "pass": {
  431. "message": " (AssertionError). assert.doesNotThrow for [function () { }, function Error() {\n [native code]\n}, Throws no specific error]",
  432. "lineNumber": 118,
  433. "functionName": "testAssert",
  434. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  435. }
  436. }
  437. DEBUG | Step Pass: {
  438. "pass": {
  439. "message": " (AssertionError). assert.doesNotThrow for [function () { throw new Error(); }, function Error() {\n [native code]\n}, Doesn't throw on named exception]",
  440. "lineNumber": 122,
  441. "functionName": "testAssert",
  442. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  443. }
  444. }
  445. DEBUG | Step Pass: {
  446. "pass": {
  447. "message": " (Error). assert.doesNotThrow for [function () { throw new Error(); }, function Err() {\n // exception used for testing throws()\n}, Catches wrong error]",
  448. "lineNumber": 122,
  449. "functionName": "testAssert",
  450. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  451. }
  452. }
  453. DEBUG | Step Pass: {
  454. "pass": {
  455. "message": " (Error). assert.doesNotThrow for [function () { throw new Error(); }, , Throws error]",
  456. "lineNumber": 122,
  457. "functionName": "testAssert",
  458. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  459. }
  460. }
  461. TEST-PASS | expect_assert.js | testAssert
  462. DEBUG | mozmill.endTest | {
  463. "passes": [
  464. {
  465. "pass": {
  466. "message": "has to pass",
  467. "lineNumber": 117,
  468. "functionName": "testAssert/<",
  469. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  470. }
  471. },
  472. {
  473. "pass": {
  474. "message": " (AssertionError). assert.pass for [has to pass]",
  475. "lineNumber": 118,
  476. "functionName": "testAssert",
  477. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  478. }
  479. },
  480. {
  481. "pass": {
  482. "message": " (AssertionError). assert.fail for [has to fail]",
  483. "lineNumber": 122,
  484. "functionName": "testAssert",
  485. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  486. }
  487. },
  488. {
  489. "pass": {
  490. "message": "true has to pass - got 'true'",
  491. "lineNumber": 117,
  492. "functionName": "testAssert/<",
  493. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  494. }
  495. },
  496. {
  497. "pass": {
  498. "message": " (AssertionError). assert.ok for [true, true has to pass]",
  499. "lineNumber": 118,
  500. "functionName": "testAssert",
  501. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  502. }
  503. },
  504. {
  505. "pass": {
  506. "message": " (AssertionError). assert.ok for [false, false has to fail]",
  507. "lineNumber": 122,
  508. "functionName": "testAssert",
  509. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  510. }
  511. },
  512. {
  513. "pass": {
  514. "message": " (AssertionError). assert.ok for [0, 0 has to fail]",
  515. "lineNumber": 122,
  516. "functionName": "testAssert",
  517. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  518. }
  519. },
  520. {
  521. "pass": {
  522. "message": "1 has to pass - got '1'",
  523. "lineNumber": 117,
  524. "functionName": "testAssert/<",
  525. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  526. }
  527. },
  528. {
  529. "pass": {
  530. "message": " (AssertionError). assert.ok for [1, 1 has to pass]",
  531. "lineNumber": 118,
  532. "functionName": "testAssert",
  533. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  534. }
  535. },
  536. {
  537. "pass": {
  538. "message": "2 has to pass - got '2'",
  539. "lineNumber": 117,
  540. "functionName": "testAssert/<",
  541. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  542. }
  543. },
  544. {
  545. "pass": {
  546. "message": " (AssertionError). assert.ok for [2, 2 has to pass]",
  547. "lineNumber": 118,
  548. "functionName": "testAssert",
  549. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  550. }
  551. },
  552. {
  553. "pass": {
  554. "message": " (AssertionError). assert.ok for [, empty string has to fail]",
  555. "lineNumber": 122,
  556. "functionName": "testAssert",
  557. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  558. }
  559. },
  560. {
  561. "pass": {
  562. "message": "non-empty string has to pass - got 'test'",
  563. "lineNumber": 117,
  564. "functionName": "testAssert/<",
  565. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  566. }
  567. },
  568. {
  569. "pass": {
  570. "message": " (AssertionError). assert.ok for [test, non-empty string has to pass]",
  571. "lineNumber": 118,
  572. "functionName": "testAssert",
  573. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  574. }
  575. },
  576. {
  577. "pass": {
  578. "message": " (AssertionError). assert.ok for [, null has to fail]",
  579. "lineNumber": 122,
  580. "functionName": "testAssert",
  581. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  582. }
  583. },
  584. {
  585. "pass": {
  586. "message": " (AssertionError). assert.ok for [, undefined has to fail]",
  587. "lineNumber": 122,
  588. "functionName": "testAssert",
  589. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  590. }
  591. },
  592. {
  593. "pass": {
  594. "message": "Values are equal - 'true' should equal 'true'",
  595. "lineNumber": 117,
  596. "functionName": "testAssert/<",
  597. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  598. }
  599. },
  600. {
  601. "pass": {
  602. "message": " (AssertionError). assert.equal for [true, true, Values are equal]",
  603. "lineNumber": 118,
  604. "functionName": "testAssert",
  605. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  606. }
  607. },
  608. {
  609. "pass": {
  610. "message": " (AssertionError). assert.equal for [true, false, Values are not equal]",
  611. "lineNumber": 122,
  612. "functionName": "testAssert",
  613. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  614. }
  615. },
  616. {
  617. "pass": {
  618. "message": " (AssertionError). assert.equal for [, , Types are not equal]",
  619. "lineNumber": 122,
  620. "functionName": "testAssert",
  621. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  622. }
  623. },
  624. {
  625. "pass": {
  626. "message": " (AssertionError). assert.equal for [, false, Types are not equal]",
  627. "lineNumber": 122,
  628. "functionName": "testAssert",
  629. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  630. }
  631. },
  632. {
  633. "pass": {
  634. "message": "Strings are equal - 'str' should equal 'str'",
  635. "lineNumber": 117,
  636. "functionName": "testAssert/<",
  637. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  638. }
  639. },
  640. {
  641. "pass": {
  642. "message": " (AssertionError). assert.equal for [str, str, Strings are equal]",
  643. "lineNumber": 118,
  644. "functionName": "testAssert",
  645. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  646. }
  647. },
  648. {
  649. "pass": {
  650. "message": "Objects are equal - '{\"a\":1,\"b\":[\"y\",\"z\"]}' should equal '{\"a\":1,\"b\":[\"y\",\"z\"]}'",
  651. "lineNumber": 117,
  652. "functionName": "testAssert/<",
  653. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  654. }
  655. },
  656. {
  657. "pass": {
  658. "message": " (AssertionError). assert.deepEqual for [[object Object], [object Object], Objects are equal]",
  659. "lineNumber": 118,
  660. "functionName": "testAssert",
  661. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  662. }
  663. },
  664. {
  665. "pass": {
  666. "message": "Arrays are equal - '[3,4]' should equal '[3,4]'",
  667. "lineNumber": 117,
  668. "functionName": "testAssert/<",
  669. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  670. }
  671. },
  672. {
  673. "pass": {
  674. "message": " (AssertionError). assert.deepEqual for [3,4, 3,4, Arrays are equal]",
  675. "lineNumber": 118,
  676. "functionName": "testAssert",
  677. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  678. }
  679. },
  680. {
  681. "pass": {
  682. "message": " (AssertionError). assert.deepEqual for [5,4, 4,5, Arrays are not equal]",
  683. "lineNumber": 122,
  684. "functionName": "testAssert",
  685. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  686. }
  687. },
  688. {
  689. "pass": {
  690. "message": "Strings are equal - '\"str\"' should equal '\"str\"'",
  691. "lineNumber": 117,
  692. "functionName": "testAssert/<",
  693. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  694. }
  695. },
  696. {
  697. "pass": {
  698. "message": " (AssertionError). assert.deepEqual for [str, str, Strings are equal]",
  699. "lineNumber": 118,
  700. "functionName": "testAssert",
  701. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  702. }
  703. },
  704. {
  705. "pass": {
  706. "message": " (AssertionError). assert.deepEqual for [, false, Objects are not equal]",
  707. "lineNumber": 122,
  708. "functionName": "testAssert",
  709. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  710. }
  711. },
  712. {
  713. "pass": {
  714. "message": " (AssertionError). assert.notEqual for [true, true, Values are equal]",
  715. "lineNumber": 122,
  716. "functionName": "testAssert",
  717. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  718. }
  719. },
  720. {
  721. "pass": {
  722. "message": "Values are not equal - 'true' should not equal 'false'",
  723. "lineNumber": 117,
  724. "functionName": "testAssert/<",
  725. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  726. }
  727. },
  728. {
  729. "pass": {
  730. "message": " (AssertionError). assert.notEqual for [true, false, Values are not equal]",
  731. "lineNumber": 118,
  732. "functionName": "testAssert",
  733. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  734. }
  735. },
  736. {
  737. "pass": {
  738. "message": "Types are not equal - 'undefined' should not equal 'null'",
  739. "lineNumber": 117,
  740. "functionName": "testAssert/<",
  741. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  742. }
  743. },
  744. {
  745. "pass": {
  746. "message": " (AssertionError). assert.notEqual for [, , Types are not equal]",
  747. "lineNumber": 118,
  748. "functionName": "testAssert",
  749. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  750. }
  751. },
  752. {
  753. "pass": {
  754. "message": "Objects are not equal - '{}' should not equal '{\"a\":4}'",
  755. "lineNumber": 117,
  756. "functionName": "testAssert/<",
  757. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  758. }
  759. },
  760. {
  761. "pass": {
  762. "message": " (AssertionError). assert.notDeepEqual for [[object Object], [object Object], Objects are not equal]",
  763. "lineNumber": 118,
  764. "functionName": "testAssert",
  765. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  766. }
  767. },
  768. {
  769. "pass": {
  770. "message": " (AssertionError). assert.notDeepEqual for [[object Object], [object Object], Objects are equal]",
  771. "lineNumber": 122,
  772. "functionName": "testAssert",
  773. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  774. }
  775. },
  776. {
  777. "pass": {
  778. "message": "regex matches string - '/Mozilla/' matches for 'Mozilla'",
  779. "lineNumber": 117,
  780. "functionName": "testAssert/<",
  781. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  782. }
  783. },
  784. {
  785. "pass": {
  786. "message": " (AssertionError). assert.match for [Mozilla, /Mozilla/, regex matches string]",
  787. "lineNumber": 118,
  788. "functionName": "testAssert",
  789. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  790. }
  791. },
  792. {
  793. "pass": {
  794. "message": " (AssertionError). assert.match for [Mozilla, /mozilla/, regex does not match string]",
  795. "lineNumber": 122,
  796. "functionName": "testAssert",
  797. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  798. }
  799. },
  800. {
  801. "pass": {
  802. "message": "regex matches string - '/mozilla/i' matches for 'Mozilla'",
  803. "lineNumber": 117,
  804. "functionName": "testAssert/<",
  805. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  806. }
  807. },
  808. {
  809. "pass": {
  810. "message": " (AssertionError). assert.match for [Mozilla, /mozilla/i, regex matches string]",
  811. "lineNumber": 118,
  812. "functionName": "testAssert",
  813. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  814. }
  815. },
  816. {
  817. "pass": {
  818. "message": "regex does not match string - '/firefox/' doesn't match for 'Mozilla'",
  819. "lineNumber": 117,
  820. "functionName": "testAssert/<",
  821. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  822. }
  823. },
  824. {
  825. "pass": {
  826. "message": " (AssertionError). assert.notMatch for [Mozilla, /firefox/, regex does not match string]",
  827. "lineNumber": 118,
  828. "functionName": "testAssert",
  829. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  830. }
  831. },
  832. {
  833. "pass": {
  834. "message": " (AssertionError). assert.notMatch for [Mozilla, /Mozilla/, regex matches string]",
  835. "lineNumber": 122,
  836. "functionName": "testAssert",
  837. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  838. }
  839. },
  840. {
  841. "pass": {
  842. "message": ". Throws an error",
  843. "lineNumber": 117,
  844. "functionName": "testAssert/<",
  845. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  846. }
  847. },
  848. {
  849. "pass": {
  850. "message": " (AssertionError). assert.throws for [function () { throw new Error(); }, , Throws an error]",
  851. "lineNumber": 118,
  852. "functionName": "testAssert",
  853. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  854. }
  855. },
  856. {
  857. "pass": {
  858. "message": " (Error). Throws a specific error",
  859. "lineNumber": 117,
  860. "functionName": "testAssert/<",
  861. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  862. }
  863. },
  864. {
  865. "pass": {
  866. "message": " (AssertionError). assert.throws for [function () { throw new Error(); }, function Error() {\n [native code]\n}, Throws a specific error]",
  867. "lineNumber": 118,
  868. "functionName": "testAssert",
  869. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  870. }
  871. },
  872. {
  873. "pass": {
  874. "message": " (Error). assert.throws for [function () { throw new Error(); }, function Err() {\n // exception used for testing throws()\n}, Catches the wrong error]",
  875. "lineNumber": 122,
  876. "functionName": "testAssert",
  877. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  878. }
  879. },
  880. {
  881. "pass": {
  882. "message": " (AssertionError). assert.throws for [function () { }, , Throws no error]",
  883. "lineNumber": 122,
  884. "functionName": "testAssert",
  885. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  886. }
  887. },
  888. {
  889. "pass": {
  890. "message": ". Throws no error",
  891. "lineNumber": 117,
  892. "functionName": "testAssert/<",
  893. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  894. }
  895. },
  896. {
  897. "pass": {
  898. "message": " (AssertionError). assert.doesNotThrow for [function () { }, , Throws no error]",
  899. "lineNumber": 118,
  900. "functionName": "testAssert",
  901. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  902. }
  903. },
  904. {
  905. "pass": {
  906. "message": " (Error). Throws no specific error",
  907. "lineNumber": 117,
  908. "functionName": "testAssert/<",
  909. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  910. }
  911. },
  912. {
  913. "pass": {
  914. "message": " (AssertionError). assert.doesNotThrow for [function () { }, function Error() {\n [native code]\n}, Throws no specific error]",
  915. "lineNumber": 118,
  916. "functionName": "testAssert",
  917. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  918. }
  919. },
  920. {
  921. "pass": {
  922. "message": " (AssertionError). assert.doesNotThrow for [function () { throw new Error(); }, function Error() {\n [native code]\n}, Doesn't throw on named exception]",
  923. "lineNumber": 122,
  924. "functionName": "testAssert",
  925. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  926. }
  927. },
  928. {
  929. "pass": {
  930. "message": " (Error). assert.doesNotThrow for [function () { throw new Error(); }, function Err() {\n // exception used for testing throws()\n}, Catches wrong error]",
  931. "lineNumber": 122,
  932. "functionName": "testAssert",
  933. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  934. }
  935. },
  936. {
  937. "pass": {
  938. "message": " (Error). assert.doesNotThrow for [function () { throw new Error(); }, , Throws error]",
  939. "lineNumber": 122,
  940. "functionName": "testAssert",
  941. "fileName": "file:///c:/work/mozmill/mutt/mutt/tests/js/assertions/expect_assert.js"
  942. }
  943. }
  944. ],
  945. "fails": [],
  946. "time_start": 1373901010268,
  947. "name": "testAssert",
  948. "time_end": 1373901010302,
  949. "filename": "c:\\work\\mozmill\\mutt\\mutt\\tests\\js\\assertions\\expect_assert.js",
  950. "failed": 0,
  951. "passed": 60
  952. }
  953. TEST-END | expect_assert.js | finished in 56ms
  954. DEBUG | mozmill.endModule | {
  955. "time_start": 1373901010250,
  956. "time_end": 1373901010306,
  957. "filename": "c:\\work\\mozmill\\mutt\\mutt\\tests\\js\\assertions\\expect_assert.js"
  958. }
  959. DEBUG | mozmill.endRunner | true
  960. DEBUG | mozmill.persist | {
  961. "screenshots": {
  962. "path": "c:\\users\\svuser\\appdata\\local\\temp\\tmpvtyd43"
  963. }
  964. }
  965. DEBUG | Step Pass: {
  966. "message": "AppQuitObserver: null",
  967. "userShutdown": null
  968. }
  969. DEBUG | Step Pass: {
  970. "function": "utils.waitFor()"
  971. }
  972. RESULTS | Passed: 1
  973. RESULTS | Failed: 0
  974. RESULTS | Skipped: 0
  975.  
  976. svuser@PXXXWIN7VM /c/work/mozmill
  977. $
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement