From 78084c2213bf8f036125b667b47e6ac041b68ea2 Mon Sep 17 00:00:00 2001 From: Valentin Fokin Date: Thu, 8 Dec 2016 14:14:08 +0100 Subject: [PATCH] Fixed some typos in stopNotifications test. --- .../stopNotifications/disconnect-called-before.html.ini | 5 +++++ .../stopNotifications/disconnect-called-during.html.ini | 2 +- .../stopNotifications/disconnect-called-before.html | 4 ++-- .../stopNotifications/disconnect-called-during.html | 4 ++-- 4 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 tests/wpt/mozilla/meta/mozilla/bluetooth/stopNotifications/disconnect-called-before.html.ini diff --git a/tests/wpt/mozilla/meta/mozilla/bluetooth/stopNotifications/disconnect-called-before.html.ini b/tests/wpt/mozilla/meta/mozilla/bluetooth/stopNotifications/disconnect-called-before.html.ini new file mode 100644 index 000000000000..af249ef0167d --- /dev/null +++ b/tests/wpt/mozilla/meta/mozilla/bluetooth/stopNotifications/disconnect-called-before.html.ini @@ -0,0 +1,5 @@ +[disconnect-called-before.html] + type: testharness + [disconnect() called before stopNotifications. Reject with InvalidStateError.] + expected: FAIL + diff --git a/tests/wpt/mozilla/meta/mozilla/bluetooth/stopNotifications/disconnect-called-during.html.ini b/tests/wpt/mozilla/meta/mozilla/bluetooth/stopNotifications/disconnect-called-during.html.ini index 6dc580dc253c..6cac157c3b2d 100644 --- a/tests/wpt/mozilla/meta/mozilla/bluetooth/stopNotifications/disconnect-called-during.html.ini +++ b/tests/wpt/mozilla/meta/mozilla/bluetooth/stopNotifications/disconnect-called-during.html.ini @@ -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 diff --git a/tests/wpt/mozilla/tests/mozilla/bluetooth/stopNotifications/disconnect-called-before.html b/tests/wpt/mozilla/tests/mozilla/bluetooth/stopNotifications/disconnect-called-before.html index edcf89c2cc6e..d94d19e6b8eb 100644 --- a/tests/wpt/mozilla/tests/mozilla/bluetooth/stopNotifications/disconnect-called-before.html +++ b/tests/wpt/mozilla/tests/mozilla/bluetooth/stopNotifications/disconnect-called-before.html @@ -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.'); diff --git a/tests/wpt/mozilla/tests/mozilla/bluetooth/stopNotifications/disconnect-called-during.html b/tests/wpt/mozilla/tests/mozilla/bluetooth/stopNotifications/disconnect-called-during.html index a10f9c1f1164..34f15f3db379 100644 --- a/tests/wpt/mozilla/tests/mozilla/bluetooth/stopNotifications/disconnect-called-during.html +++ b/tests/wpt/mozilla/tests/mozilla/bluetooth/stopNotifications/disconnect-called-during.html @@ -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.');