Added the Search API Synonym module to deal specifically with licence and license...
[yaffs-website] / node_modules / phridge / test / cases / callRejectTwice.js
1 "use strict";\r
2 \r
3 var phridge = require("../../lib/main.js");\r
4 \r
5 phridge.spawn()\r
6     .then(function (phantom) {\r
7         // It's necessary to exit cleanly because otherwise phantomjs doesn't exit on Windows\r
8         process.on("uncaughtException", function (err) {\r
9             console.error(err);\r
10             phantom.dispose().then(function () {\r
11                 process.exit(0);\r
12             });\r
13         });\r
14 \r
15         phantom.run(function (resolve, reject) {\r
16             reject();\r
17             reject();\r
18         });\r
19     });