Tizen 2.1 base
[platform/framework/web/web-ui-fw.git] / libs / js / jquery-mobile-1.2.0 / node_modules / grunt / node_modules / nodeunit / node_modules / tap / test-disabled / bailout.js
1 var tap = require("tap")
2   , test = tap.test
3
4 test("bailout test", { skip: false }, function (t) {
5
6   // t.once("bailout", function () {
7   //   console.error("bailout event")//, t)
8   //   t.clear()
9   // })
10
11   // t.once("end", function () {
12   //   console.error("end event")
13   // })
14
15   // simulate three tests where the second bails out.
16   t.test("first", function (t) {
17     t.pass("this is ok")
18     t.end()
19   })
20
21   t.test("bailout", function (t) {
22     console.error("bailout test")
23     t.pass("pass")
24     t.bailout("bail out message")
25     t.fail("fail")
26     t.end()
27   })
28
29   t.test("second (should not happen)", function (t) {
30     t.fail("this should not happen")
31     t.end()
32   })
33
34   t.end()
35
36 })