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

Unified Diff: third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/max-length-for-device-name-namePrefix.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/max-length-for-device-name-namePrefix.html
diff --git a/third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/max-length-for-device-name-namePrefix.html b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/max-length-for-device-name-namePrefix.html
index 76af16b3b103f9f479f7d82a2a76354d759833dd..777150d727e709d401ff9e578eb55c1fd53aac58 100644
--- a/third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/max-length-for-device-name-namePrefix.html
+++ b/third_party/WebKit/LayoutTests/bluetooth/requestDevice/canonicalizeFilter/max-length-for-device-name-namePrefix.html
@@ -5,7 +5,7 @@
<script>
'use strict';
promise_test(() => {
- let name_too_long = generate_string(249, 'a');
+ let name_too_long = 'a'.repeat(249);
return assert_promise_rejects_with_message(
requestDeviceWithKeyDown({filters: [{namePrefix: name_too_long}]}),
new DOMException(

Powered by Google App Engine
This is Rietveld 408576698