@@ -19,24 +19,24 @@ describe('end-to-end scattergl tests', function() {
19
19
x : [ 1 , 2 , 3 , 4 , 5 , 6 , 7 ] ,
20
20
y : [ 2 , 3 , 4 , 5 , 6 , 7 , 8 ] ,
21
21
text : 'Test'
22
- } ] ) . then ( function ( ) {
22
+ } ] ) . then ( function ( ) {
23
23
var fullLayout = gd . _fullLayout ;
24
- var subplot = fullLayout . _plots [ 'xy' ] ;
24
+ var subplot = fullLayout . _plots . xy ;
25
25
var scene = subplot . _scene ;
26
26
expect ( scene . glText . length ) . toEqual ( 1 ) ;
27
27
} ) . catch ( failTest ) . then ( done ) ;
28
28
} ) ;
29
29
30
- it ( 'should update a plot with text labels' , function ( done ) {
30
+ it ( 'should update a plot with text labels' , function ( done ) {
31
31
Plotly . react ( gd , [ {
32
32
type : 'scattergl' ,
33
33
mode : 'text+lines' ,
34
34
x : [ 1 , 2 , 3 , 4 , 5 , 6 , 7 ] ,
35
35
y : [ 2 , 3 , 4 , 5 , 6 , 7 , 8 ] ,
36
36
text : 'Test'
37
- } ] ) . then ( function ( ) {
37
+ } ] ) . then ( function ( ) {
38
38
var fullLayout = gd . _fullLayout ;
39
- var subplot = fullLayout . _plots [ 'xy' ] ;
39
+ var subplot = fullLayout . _plots . xy ;
40
40
var scene = subplot . _scene ;
41
41
expect ( scene . glText . length ) . toEqual ( 1 ) ;
42
42
@@ -64,9 +64,9 @@ describe('end-to-end scattergl tests', function() {
64
64
text : 'Test 3'
65
65
}
66
66
] ) ;
67
- } ) . then ( function ( ) {
67
+ } ) . then ( function ( ) {
68
68
var fullLayout = gd . _fullLayout ;
69
- var subplot = fullLayout . _plots [ 'xy' ] ;
69
+ var subplot = fullLayout . _plots . xy ;
70
70
var scene = subplot . _scene ;
71
71
expect ( scene . glText . length ) . toEqual ( 3 ) ;
72
72
@@ -87,9 +87,9 @@ describe('end-to-end scattergl tests', function() {
87
87
text : 'Test 2'
88
88
}
89
89
] ) ;
90
- } ) . then ( function ( ) {
90
+ } ) . then ( function ( ) {
91
91
var fullLayout = gd . _fullLayout ;
92
- var subplot = fullLayout . _plots [ 'xy' ] ;
92
+ var subplot = fullLayout . _plots . xy ;
93
93
var scene = subplot . _scene ;
94
94
expect ( scene . glText . length ) . toEqual ( 2 ) ;
95
95
} ) . catch ( failTest ) . then ( done ) ;
0 commit comments