Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(184)

Unified Diff: LayoutTests/bluetooth/readValue.html

Issue 1164393004: bluetooth: Layout tests for bluetooth error messages (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@bluetooth-read-value-impl
Patch Set: Fix error message test since message on browser side changed. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « LayoutTests/bluetooth/getPrimaryService.html ('k') | LayoutTests/bluetooth/requestDevice.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/bluetooth/readValue.html
diff --git a/LayoutTests/bluetooth/readValue.html b/LayoutTests/bluetooth/readValue.html
index 1757f3cc1d76fa680038d4c120d93a570c7c44ed..bb0cdfa8530803eac4d2eee9d0103e62b255f700 100644
--- a/LayoutTests/bluetooth/readValue.html
+++ b/LayoutTests/bluetooth/readValue.html
@@ -27,6 +27,7 @@ sequential_promise_test(function() {
assert_unreached('Device went out of range, should fail.');
}, function(e) {
assert_equals(e.name, 'NetworkError');
+ assert_equals(e.message, 'Bluetooth Device is no longer in range.');
});
});
}, 'Device goes out of range. Reject with NetworkError.');
@@ -43,8 +44,7 @@ sequential_promise_test(function() {
return characteristic.readValue().then(function() {
assert_unreached('Characteristic is unreadable. Should fail.');
}, function(e) {
- // TODO(ortuno): Uncomment once browser side patch lands.
- // assert_equals(e.name, 'NotSupportedError');
+ assert_equals(e.name, 'NotSupportedError');
});
});
}, 'Characteristic is not readable. Reject with NetworkError.');
« no previous file with comments | « LayoutTests/bluetooth/getPrimaryService.html ('k') | LayoutTests/bluetooth/requestDevice.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698