@@ -1319,16 +1319,16 @@ define(function (require, exports, module) {
13191319 await waitsForLiveDevelopmentToOpen ( ) ;
13201320 let editor = EditorManager . getActiveEditor ( ) ;
13211321 editor . setCursorPos ( { line : 0 , ch : 0 } ) ;
1322- await forRemoteExec ( `document.getElementsByClassName("__brackets-ld-highlight").length ` , ( result ) => {
1322+ await forRemoteExec ( `_LD.getHighlightCount() ` , ( result ) => {
13231323 return result === 0 ;
13241324 } ) ;
13251325
13261326 editor . setCursorPos ( { line : 11 , ch : 10 } ) ;
13271327
1328- await forRemoteExec ( `document.getElementsByClassName("__brackets-ld-highlight").length ` , ( result ) => {
1328+ await forRemoteExec ( `_LD.getHighlightCount() ` , ( result ) => {
13291329 return result === 1 ;
13301330 } ) ;
1331- await forRemoteExec ( `document.getElementsByClassName("__brackets-ld-highlight")[0].trackingElement .id` ,
1331+ await forRemoteExec ( `_LD.getHighlightTrackingElement(0) .id` ,
13321332 ( result ) => {
13331333 return result === 'testId' ;
13341334 } ) ;
@@ -1341,7 +1341,7 @@ define(function (require, exports, module) {
13411341 "SpecRunnerUtils.openProjectFiles simple2.html" ) ;
13421342
13431343 await waitsForLiveDevelopmentToOpen ( ) ;
1344- await forRemoteExec ( `document.getElementsByClassName("__brackets-ld-highlight").length ` , ( result ) => {
1344+ await forRemoteExec ( `_LD.getHighlightCount() ` , ( result ) => {
13451345 return result === 0 ;
13461346 } ) ;
13471347
@@ -1351,11 +1351,11 @@ define(function (require, exports, module) {
13511351 editor . setCursorPos ( { line : 2 , ch : 6 } ) ;
13521352
13531353 await awaits ( 500 ) ;
1354- await forRemoteExec ( `document.getElementsByClassName("__brackets-ld-highlight").length ` , ( result ) => {
1354+ await forRemoteExec ( `_LD.getHighlightCount() ` , ( result ) => {
13551355 return result === 3 ;
13561356 } ) ;
13571357 await forRemoteExec (
1358- `document.getElementsByClassName("__brackets-ld-highlight")[0].trackingElement .classList[0]` ,
1358+ `_LD.getHighlightTrackingElement(0) .classList[0]` ,
13591359 ( result ) => {
13601360 return result === 'testClass' ;
13611361 } ) ;
@@ -1366,11 +1366,11 @@ define(function (require, exports, module) {
13661366 editor . setCursorPos ( { line : 0 , ch : 1 } ) ;
13671367
13681368 await awaits ( 500 ) ;
1369- await forRemoteExec ( `document.getElementsByClassName("__brackets-ld-highlight").length ` , ( result ) => {
1369+ await forRemoteExec ( `_LD.getHighlightCount() ` , ( result ) => {
13701370 return result === 2 ;
13711371 } ) ;
13721372 await forRemoteExec (
1373- `document.getElementsByClassName("__brackets-ld-highlight")[0].trackingElement .classList[0]` ,
1373+ `_LD.getHighlightTrackingElement(0) .classList[0]` ,
13741374 ( result ) => {
13751375 return result === 'testClass2' ;
13761376 } ) ;
@@ -1385,30 +1385,30 @@ define(function (require, exports, module) {
13851385
13861386 await waitsForLiveDevelopmentToOpen ( ) ;
13871387 let editor = EditorManager . getActiveEditor ( ) ;
1388- await forRemoteExec ( `document.getElementsByClassName("__brackets-ld-highlight").length ` , ( result ) => {
1388+ await forRemoteExec ( `_LD.getHighlightCount() ` , ( result ) => {
13891389 return result === 0 ;
13901390 } ) ;
13911391
13921392 editor . setCursorPos ( { line : 11 , ch : 10 } ) ;
13931393
13941394 await awaits ( 500 ) ;
1395- await forRemoteExec ( `document.getElementsByClassName("__brackets-ld-highlight").length ` , ( result ) => {
1395+ await forRemoteExec ( `_LD.getHighlightCount() ` , ( result ) => {
13961396 return result === 1 ;
13971397 } ) ;
13981398 let originalWidth ;
1399- await forRemoteExec ( `document.getElementsByClassName("__brackets-ld-highlight")[0].style. width` , ( result ) => {
1399+ await forRemoteExec ( `_LD.getHighlightStyle(0, ' width') ` , ( result ) => {
14001400 originalWidth = result ;
14011401 return true ;
14021402 } ) ;
14031403
14041404 iFrame . style . width = "100px" ;
14051405 await awaits ( 500 ) ;
1406- await forRemoteExec ( `document.getElementsByClassName("__brackets-ld-highlight")[0].style. width` , ( result ) => {
1406+ await forRemoteExec ( `_LD.getHighlightStyle(0, ' width') ` , ( result ) => {
14071407 return originalWidth !== result ;
14081408 } ) ;
14091409 iFrame . style . width = "100%" ;
14101410 await awaits ( 500 ) ;
1411- await forRemoteExec ( `document.getElementsByClassName("__brackets-ld-highlight")[0].style. width` , ( result ) => {
1411+ await forRemoteExec ( `_LD.getHighlightStyle(0, ' width') ` , ( result ) => {
14121412 return originalWidth === result ;
14131413 } ) ;
14141414
@@ -1423,16 +1423,16 @@ define(function (require, exports, module) {
14231423 let editor = EditorManager . getActiveEditor ( ) ;
14241424
14251425 await awaits ( 500 ) ;
1426- await forRemoteExec ( `document.getElementsByClassName("__brackets-ld-highlight").length ` , ( result ) => {
1426+ await forRemoteExec ( `_LD.getHighlightCount() ` , ( result ) => {
14271427 return result === 0 ;
14281428 } ) ;
14291429 await forRemoteExec ( `document.getElementById("testId2").click()` ) ;
14301430
14311431 await awaits ( 500 ) ;
1432- await forRemoteExec ( `document.getElementsByClassName("__brackets-ld-highlight").length ` , ( result ) => {
1432+ await forRemoteExec ( `_LD.getHighlightCount() ` , ( result ) => {
14331433 return result === 1 ;
14341434 } ) ;
1435- await forRemoteExec ( `document.getElementsByClassName("__brackets-ld-highlight")[0].trackingElement .id` ,
1435+ await forRemoteExec ( `_LD.getHighlightTrackingElement(0) .id` ,
14361436 ( result ) => {
14371437 return result === 'testId2' ;
14381438 } ) ;
@@ -1575,7 +1575,7 @@ define(function (require, exports, module) {
15751575 await waitsForLiveDevelopmentToOpen ( ) ;
15761576
15771577 await awaits ( 1000 ) ;
1578- await forRemoteExec ( `document.getElementsByClassName("__brackets-ld-highlight").length ` , ( result ) => {
1578+ await forRemoteExec ( `_LD.getHighlightCount() ` , ( result ) => {
15791579 return result === 0 ;
15801580 } ) ;
15811581
@@ -1593,10 +1593,10 @@ define(function (require, exports, module) {
15931593 await forRemoteExec ( `document.getElementById("testId").click()` ) ;
15941594 await awaits ( 1000 ) ;
15951595
1596- await forRemoteExec ( `document.getElementsByClassName("__brackets-ld-highlight").length ` , ( result ) => {
1596+ await forRemoteExec ( `_LD.getHighlightCount() ` , ( result ) => {
15971597 return result === 1 ;
15981598 } ) ;
1599- await forRemoteExec ( `document.getElementsByClassName("__brackets-ld-highlight")[0].trackingElement .id` ,
1599+ await forRemoteExec ( `_LD.getHighlightTrackingElement(0) .id` ,
16001600 ( result ) => {
16011601 return result === 'testId' ;
16021602 } ) ;
@@ -1615,7 +1615,7 @@ define(function (require, exports, module) {
16151615 editor && editor . setCursorPos ( { line : 0 , ch : 0 } ) ;
16161616
16171617 await awaits ( 500 ) ;
1618- await forRemoteExec ( `document.getElementsByClassName("__brackets-ld-highlight").length ` , ( result ) => {
1618+ await forRemoteExec ( `_LD.getHighlightCount() ` , ( result ) => {
16191619 return result === 0 ;
16201620 } ) ;
16211621 await forRemoteExec ( `document.getElementById("testId2").click()` ) ;
0 commit comments