X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FLayoutTests%2Fw3c%2Fweb-platform-tests%2Fshadow-dom%2Fuser-interaction%2Ffocus-navigation%2Ftest-003.html;h=753b3f15d92ad94ea81957d9e892a38955bdcbef;hb=4a1a0bdd01eef90b0826a0e761d3379d3715c10f;hp=62baf9f97f65a48c2cd06eb9a4a2b8b21f28a670;hpb=b1be5ca53587d23e7aeb77b26861fdc0a181ffd8;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/LayoutTests/w3c/web-platform-tests/shadow-dom/user-interaction/focus-navigation/test-003.html b/src/third_party/WebKit/LayoutTests/w3c/web-platform-tests/shadow-dom/user-interaction/focus-navigation/test-003.html index 62baf9f..753b3f1 100644 --- a/src/third_party/WebKit/LayoutTests/w3c/web-platform-tests/shadow-dom/user-interaction/focus-navigation/test-003.html +++ b/src/third_party/WebKit/LayoutTests/w3c/web-platform-tests/shadow-dom/user-interaction/focus-navigation/test-003.html @@ -47,7 +47,7 @@ A_07_02_03_T01.step(unit(function (ctx) { var host = d.createElement('div'); d.body.appendChild(host); - var s = createSR(host); + var s = host.createShadowRoot(); var inp1 = d.createElement('input'); inp1.setAttribute('type', 'text'); @@ -152,7 +152,7 @@ A_07_02_03_T02.step(unit(function (ctx) { chb2.setAttribute('class', 'shadow'); chb2.setAttribute('tabindex', '3'); chb2.addEventListener('focus', A_07_02_03_T02.step_func(function(event) { - assert_equals(counter++, 3, 'Point 2: wrong focus navigation order'); + assert_equals(counter++, 2, 'Point 2: wrong focus navigation order'); invoked[2] = true; }), false); invoked[2] = false; @@ -160,17 +160,17 @@ A_07_02_03_T02.step(unit(function (ctx) { var chb3 = d.createElement('input'); chb3.setAttribute('type', 'checkbox'); - chb3.setAttribute('id', 'chb2'); + chb3.setAttribute('id', 'chb3'); chb3.setAttribute('class', 'shadow'); chb3.setAttribute('tabindex', '2'); chb3.addEventListener('focus', A_07_02_03_T02.step_func(function(event) { - assert_equals(counter++, 2, 'Point 3: wrong focus navigation order'); + assert_equals(counter++, 1, 'Point 3: wrong focus navigation order'); invoked[3] = true; }), false); invoked[3] = false; host.appendChild(chb3); - var s = createSR(host); + var s = host.createShadowRoot(); var div = d.createElement('div'); div.innerHTML = ''; @@ -202,10 +202,10 @@ A_07_02_03_T02.step(unit(function (ctx) { var chb4 = d.createElement('input'); chb4.setAttribute('type', 'checkbox'); - chb4.setAttribute('id', 'chb2'); + chb4.setAttribute('id', 'chb4'); chb4.setAttribute('tabindex', '6'); chb4.addEventListener('focus', A_07_02_03_T02.step_func(function(event) { - assert_equals(counter++, 1, 'Point 6: wrong focus navigation order'); + assert_equals(counter++, 3, 'Point 6: wrong focus navigation order'); invoked[6] = true; }), false); invoked[6] = false; @@ -214,11 +214,11 @@ A_07_02_03_T02.step(unit(function (ctx) { chb1.focus(); //simulate TAB clicks - //Expected order: chb1, chb4, chb3, chb2, inp1, inp2 + //Expected order: chb1, chb3, chb2, chb4, inp1, inp2 fireKeyboardEvent(d, chb1, 'U+0009'); - fireKeyboardEvent(d, chb4, 'U+0009'); fireKeyboardEvent(d, chb3, 'U+0009'); fireKeyboardEvent(d, chb2, 'U+0009'); + fireKeyboardEvent(d, chb4, 'U+0009'); fireKeyboardEvent(d, inp1, 'U+0009'); fireKeyboardEvent(d, inp2, 'U+0009');