Skip to content

Commit

Permalink
Fixed some typos in stopNotifications test.
Browse files Browse the repository at this point in the history
  • Loading branch information
fokinv committed Dec 8, 2016
1 parent 0fe94a6 commit 78084c2
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
@@ -0,0 +1,5 @@
[disconnect-called-before.html]
type: testharness
[disconnect() called before stopNotifications. Reject with InvalidStateError.]
expected: FAIL

@@ -1,5 +1,5 @@
[disconnect-called-during.html]
type: testharness
[disconnect() called during stopNotifications. Reject with NetworkError.]
[disconnect() called during stopNotifications. Reject with InvalidStateError.]
expected: FAIL

Expand Up @@ -17,8 +17,8 @@
.then(characteristic => characteristic.startNotifications())
.then(characteristic => {
gattServer.disconnect();
return promise_rejects(t, 'NetworkError', characteristic.startNotifications());
return promise_rejects(t, 'InvalidStateError', characteristic.stopNotifications());
});
});
}, 'disconnect() called before stopNotifications. Reject with NetworkError.');
}, 'disconnect() called before stopNotifications. Reject with InvalidStateError.');
</script>
Expand Up @@ -16,10 +16,10 @@
.then(service => service.getCharacteristic(heart_rate_measurement.name))
.then(characteristic => characteristic.startNotifications())
.then(characteristic => {
let promise = promise_rejects(t, 'NetworkError', characteristic.startNotifications());
let promise = promise_rejects(t, 'InvalidStateError', characteristic.stopNotifications());
gattServer.disconnect();
return promise;
});
});
}, 'disconnect() called during stopNotifications. Reject with NetworkError.');
}, 'disconnect() called during stopNotifications. Reject with InvalidStateError.');
</script>

0 comments on commit 78084c2

Please sign in to comment.