Skip to content

Test(for releasing 12.0)

Seonghyup edited this page Apr 18, 2017 · 54 revisions

Browsers test

Test Environment

  • Windows7
  • JsUnit 2.2 TestRunner (using js\test\testSuiteDyn.html)

Chrome

Running on Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36 NetHelper70

Result: Runs: 35951 Errors: 0 Failures: 0

FireFox

Running on Mozilla/5.0 (Windows NT 6.3; WOW64; rv:39.0) Getcko/20100101 Firefox/39.0 NetHelper70

Result: Runs: 35951 Errors: 0 Failures: 0

IE11

Running on Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.3; .NET4.0C; .NET4.0E; NetHelper70; CNS_UA; AD_LOGON=4C47452E4E4554; rv:11.0) like Gecko

Result: Runs: 35951 Errors: 0 Failures: 10

Tests with problems (10 total) - JsUnit

1. root/test/testGlobal.html:testGetLocaleBrowser failed

Expected <ko-KR> (String) but was <en-US> (String)


2. root/test/testGlobalCompiled.html:testGetLocaleBrowser failed

Expected <ko-KR> (String) but was <en-US> (String)


3. collate/test/testCollation.html:testCollatorWithSortUpperFirst failed

" found nested Array@0
"
Expected <e> (String) but was <E> (String)


4. collate/test/testCollation.html:testCollatorCaseMixedWithIndexMarkers_zh_Hans failed

" found nested Array@2
"
Expected <啊> (String) but was <�Banana> (String)


5. collate/test/testCollation.html:testCollatorCaseMixedWithIndexMarkers_zh_Hant_stroke failed

" found nested Array@0
"
Expected <丿> (String) but was <�.10> (String)


6. collate/test/testCollation.html:testCollatorCaseMixedWithIndexMarkers_zh_Hant_zhuyin failed

" found nested Array@1
"
Expected <褒> (String) but was <�ㄆ> (String)


7. collate/test/testCollationCompiled.html:testCollatorWithSortUpperFirst failed

" found nested Array@0
"
Expected <e> (String) but was <E> (String)


8. collate/test/testCollationCompiled.html:testCollatorCaseMixedWithIndexMarkers_zh_Hans failed

" found nested Array@2
"
Expected <啊> (String) but was <�Banana> (String)


9. collate/test/testCollationCompiled.html:testCollatorCaseMixedWithIndexMarkers_zh_Hant_stroke failed

" found nested Array@0
"
Expected <丿> (String) but was <�.10> (String)


10. collate/test/testCollationCompiled.html:testCollatorCaseMixedWithIndexMarkers_zh_Hant_zhuyin failed

" found nested Array@1
"
Expected <褒> (String) but was <�ㄆ> (String)

NOTE: Fail case 1, 2 is known issue caused by locale. Is there a way to change language(navigator.browserLanguage, navigator.browserLanguage or navigator.language) in IE11? I tried to set language to en-US in its option, but it didn't work. I could not find the way to change locale, so I modified LocaleInfo class like below:

ilib.getLocale = function () {
    if (typeof(ilib.locale) !== 'string') {
    	var plat = ilib._getPlatform();
    	switch (plat) {
    	    case 'browser':
                ilib.locale = 'en-US';
                break;

The remaining fail cases are about collation. According to this page, IE11 fully supports Intl.Collator. But there is something difference in the implementation compared with FF and Chrome.

IE8

NOTE: Could not install IE8 on Windows7 in the usual way. Is it necessary for release?

Clone this wiki locally