Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / js / script-tests / string-localeCompare.js
blobded7a4cc15952ee9fa6526c967d59973949be124
1 description("This test checks String.localeCompare().");
3 shouldBeTrue('"a".localeCompare("aa") < 0');
4 shouldBeTrue('"a".localeCompare("b") < 0');
6 shouldBeTrue('"a".localeCompare("a") === 0');
7 shouldBeTrue('"a\u0308\u0323".localeCompare("a\u0323\u0308") === 0');
9 shouldBeTrue('"aa".localeCompare("a") > 0');
10 shouldBeTrue('"b".localeCompare("a") > 0');