From ba6a483c43d8282ed6085bea0fb2a04bd6855ea3 Mon Sep 17 00:00:00 2001
From: Ms2ger <Ms2ger@igalia.com>
Date: Wed, 14 Nov 2018 17:12:36 +0100
Subject: [PATCH] Intl.Segmenter: Fix copy/paste errors in tests for valid
 options.

---
 .../constructor/options-granularity-valid.js  | 24 +++++++++----------
 .../options-lineBreakStyle-valid.js           |  2 +-
 2 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/test/intl402/Segmenter/constructor/constructor/options-granularity-valid.js b/test/intl402/Segmenter/constructor/constructor/options-granularity-valid.js
index c602f2bf47..429bf73f0f 100644
--- a/test/intl402/Segmenter/constructor/constructor/options-granularity-valid.js
+++ b/test/intl402/Segmenter/constructor/constructor/options-granularity-valid.js
@@ -3,26 +3,26 @@
 
 /*---
 esid: sec-Intl.Segmenter
-description: Checks handling of valid values for the style option to the Segmenter constructor.
+description: Checks handling of valid values for the granularity option to the Segmenter constructor.
 info: |
     Intl.Segmenter ([ locales [ , options ]])
 
-    9. Let lineBreakStyle be ? GetOption(options, "lineBreakStyle", "string", « "strict", "normal", "loose" », "normal").
-    15. If granularity is "line",
-        a. Set segmenter.[[SegmenterLineBreakStyle]] to r.[[lb]].
+    13. Let granularity be ? GetOption(options, "granularity", "string", « "grapheme", "word", "sentence", "line" », "grapheme").
+    14. Set segmenter.[[SegmenterGranularity]] to granularity.
 features: [Intl.Segmenter]
 ---*/
 
 const validOptions = [
-  [undefined, "normal"],
-  ["strict", "strict"],
-  ["normal", "normal"],
-  ["loose", "loose"],
-  [{ toString() { return "loose"; } }, "loose"],
+  [undefined, "grapheme"],
+  ["grapheme", "grapheme"],
+  ["word", "word"],
+  ["sentence", "sentence"],
+  ["line", "line"],
+  [{ toString() { return "line"; } }, "line"],
 ];
 
-for (const [lineBreakStyle, expected] of validOptions) {
-  const segmenter = new Intl.Segmenter([], { granularity: "line", lineBreakStyle });
+for (const [granularity, expected] of validOptions) {
+  const segmenter = new Intl.Segmenter([], { granularity });
   const resolvedOptions = segmenter.resolvedOptions();
-  assert.sameValue(resolvedOptions.lineBreakStyle, expected);
+  assert.sameValue(resolvedOptions.granularity, expected);
 }
diff --git a/test/intl402/Segmenter/constructor/constructor/options-lineBreakStyle-valid.js b/test/intl402/Segmenter/constructor/constructor/options-lineBreakStyle-valid.js
index c602f2bf47..3b94f3a435 100644
--- a/test/intl402/Segmenter/constructor/constructor/options-lineBreakStyle-valid.js
+++ b/test/intl402/Segmenter/constructor/constructor/options-lineBreakStyle-valid.js
@@ -3,7 +3,7 @@
 
 /*---
 esid: sec-Intl.Segmenter
-description: Checks handling of valid values for the style option to the Segmenter constructor.
+description: Checks handling of valid values for the lineBreakStyle option to the Segmenter constructor.
 info: |
     Intl.Segmenter ([ locales [ , options ]])
 
-- 
GitLab