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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/unicode-valid-length-name-name.html

Issue 2858183002: bluetooth: Use String.repeat directly instead of generate_string. (Closed)
Patch Set: Merge branch 'bluetooth-simulate-preconnected' into bluetooth-simulateconnecteddevice-followup Created 3 years, 7 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
Index: third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/unicode-valid-length-name-name.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/unicode-valid-length-name-name.html b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/unicode-valid-length-name-name.html
index 2ed5424da06aab9897b1d65e5d9fe88a31ca9e53..47e17da3477077b0bc960e273c0f7268a3bdf90f 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/unicode-valid-length-name-name.html
+++ b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/unicode-valid-length-name-name.html
@@ -6,9 +6,9 @@
<script src="../../../resources/bluetooth/web-bluetooth-test.js"></script>
<script>
promise_test(() => {
- let valid_unicode_name = generate_string(
- 9, '\u2764'); // \u2764's UTF-8 representation is 3 bytes long.
- // 9 chars * 3 bytes/char = 27 bytes
+ // \u2764's UTF-8 representation is 3 bytes long.
+ // 9 chars * 3 bytes/char = 27 bytes
+ let valid_unicode_name = '\u2764'.repeat(9);
return setUpPreconnectedDevice({name: valid_unicode_name})
.then(() => requestDeviceWithKeyDown({
filters: [{name: valid_unicode_name}]}))

Powered by Google App Engine
This is Rietveld 408576698