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

Unified Diff: LayoutTests/bluetooth/connectGATT.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 | « no previous file | LayoutTests/bluetooth/getCharacteristic.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/bluetooth/connectGATT.html
diff --git a/LayoutTests/bluetooth/connectGATT.html b/LayoutTests/bluetooth/connectGATT.html
index 095e5113b83aa95479c98f4970014e57bfccab94..6690a4ef028961d3f96942743d75c6271367dd9e 100644
--- a/LayoutTests/bluetooth/connectGATT.html
+++ b/LayoutTests/bluetooth/connectGATT.html
@@ -14,6 +14,7 @@ sequential_promise_test(function() {
assert_unreached('Should return error if device not in adapter.');
}, 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.');
@@ -25,6 +26,7 @@ sequential_promise_test(function() {
assert_unreached('Should return error since device failed to connect.');
}, function(e) {
assert_equals(e.name, 'NetworkError');
+ assert_equals(e.message, 'Connection failed for unknown reason.');
});
});
}, 'Device failed to connect. Reject with NetworkError.');
« no previous file with comments | « no previous file | LayoutTests/bluetooth/getCharacteristic.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698