- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / extensions / api_test / dial / experimental / on_error.js
1 chrome.test.runTests([
2   function noListeners() {
3     chrome.test.listenOnce(chrome.dial.onError, function(error) {
4       chrome.test.assertTrue(error.code == "no_listeners");
5     });
6     chrome.dial.discoverNow(function(result) {
7       chrome.test.assertTrue(!result);
8     });
9   }
10   // TODO(justinlin): Test other errors.
11 ]);