2 function noListeners() {
3 chrome
.test
.listenOnce(chrome
.dial
.onError
, function(error
) {
4 chrome
.test
.assertTrue(error
.code
== "no_listeners");
6 chrome
.dial
.discoverNow(function(result
) {
7 chrome
.test
.assertTrue(!result
);
10 // TODO(justinlin): Test other errors.