@@ -441,7 +441,7 @@ describe('integration', function () {
441
441
442
442
assert . equal ( breadcrumbs [ 0 ] . type , 'ui_event' ) ;
443
443
// NOTE: attributes re-ordered. should this be expected?
444
- assert . equal ( breadcrumbs [ 0 ] . data . target , 'input#bar [name="foo"][placeholder="lol"]' ) ;
444
+ assert . equal ( breadcrumbs [ 0 ] . data . target , 'body > form#foo-form > input [name="foo"][placeholder="lol"]' ) ;
445
445
assert . equal ( breadcrumbs [ 0 ] . data . type , 'click' ) ;
446
446
}
447
447
) ;
@@ -482,7 +482,7 @@ describe('integration', function () {
482
482
483
483
assert . equal ( breadcrumbs [ 0 ] . type , 'ui_event' ) ;
484
484
// NOTE: attributes re-ordered. should this be expected?
485
- assert . equal ( breadcrumbs [ 0 ] . data . target , 'input#bar [name="foo"][placeholder="lol"]' ) ;
485
+ assert . equal ( breadcrumbs [ 0 ] . data . target , 'body > form#foo-form > input [name="foo"][placeholder="lol"]' ) ;
486
486
assert . equal ( breadcrumbs [ 0 ] . data . type , 'click' ) ;
487
487
}
488
488
) ;
@@ -501,9 +501,9 @@ describe('integration', function () {
501
501
var clickHandler = function ( evt ) {
502
502
//evt.stopPropagation();
503
503
} ;
504
- document . getElementById ( ' a') . addEventListener ( 'click' , clickHandler ) ;
505
- document . getElementById ( ' b') . addEventListener ( 'click' , clickHandler ) ;
506
- document . getElementById ( ' c') . addEventListener ( 'click' , clickHandler ) ;
504
+ document . querySelector ( '. a') . addEventListener ( 'click' , clickHandler ) ;
505
+ document . querySelector ( '. b') . addEventListener ( 'click' , clickHandler ) ;
506
+ document . querySelector ( '. c') . addEventListener ( 'click' , clickHandler ) ;
507
507
508
508
// click <input/>
509
509
var evt = document . createEvent ( 'MouseEvent' ) ;
@@ -519,7 +519,7 @@ describe('integration', function () {
519
519
null
520
520
) ;
521
521
522
- var input = document . getElementById ( ' a') ; // leaf node
522
+ var input = document . querySelector ( '. a') ; // leaf node
523
523
input . dispatchEvent ( evt ) ;
524
524
} ,
525
525
function ( ) {
@@ -530,7 +530,7 @@ describe('integration', function () {
530
530
531
531
assert . equal ( breadcrumbs [ 0 ] . type , 'ui_event' ) ;
532
532
// NOTE: attributes re-ordered. should this be expected?
533
- assert . equal ( breadcrumbs [ 0 ] . data . target , 'div# a' ) ;
533
+ assert . equal ( breadcrumbs [ 0 ] . data . target , 'body > div.c > div.b > div. a' ) ;
534
534
assert . equal ( breadcrumbs [ 0 ] . data . type , 'click' ) ;
535
535
}
536
536
) ;
0 commit comments