@@ -15,7 +15,7 @@ import { CommonActionType } from '../../datascience-ui/interactive-common/redux/
1515import { DataScienceIocContainer } from './dataScienceIocContainer' ;
1616import { addCode } from './interactiveWindowTestHelpers' ;
1717import { addCell , createNewEditor } from './nativeEditorTestHelpers' ;
18- import { runDoubleTest , waitForMessage } from './testHelpers' ;
18+ import { runDoubleTest , runInteractiveTest , waitForMessage } from './testHelpers' ;
1919
2020// tslint:disable: no-var-requires no-require-imports
2121const rangeInclusive = require ( 'range-inclusive' ) ;
@@ -92,7 +92,7 @@ suite('DataScience Interactive Window variable explorer tests', () => {
9292 }
9393 }
9494
95- runDoubleTest (
95+ runInteractiveTest (
9696 'Variable explorer - Exclude' ,
9797 async ( wrapper ) => {
9898 const basicCode : string = `import numpy as np
@@ -158,7 +158,7 @@ value = 'hello world'`;
158158 }
159159 ) ;
160160
161- runDoubleTest (
161+ runInteractiveTest (
162162 'Variable explorer - Update' ,
163163 async ( wrapper ) => {
164164 const basicCode : string = `value = 'hello world'` ;
@@ -254,7 +254,7 @@ value = 'hello world'`;
254254 ) ;
255255
256256 // Test our display of basic types. We render 8 rows by default so only 8 values per test
257- runDoubleTest (
257+ runInteractiveTest (
258258 'Variable explorer - Types A' ,
259259 async ( wrapper ) => {
260260 const basicCode : string = `myList = [1, 2, 3]
@@ -285,7 +285,7 @@ myDict = {'a': 1}`;
285285 type : 'dict' ,
286286 size : 54 ,
287287 shape : '' ,
288- count : 0 ,
288+ count : 1 ,
289289 truncated : false
290290 } ,
291291 {
@@ -295,7 +295,7 @@ myDict = {'a': 1}`;
295295 type : 'list' ,
296296 size : 54 ,
297297 shape : '' ,
298- count : 0 ,
298+ count : 3 ,
299299 truncated : false
300300 } ,
301301 // Set can vary between python versions, so just don't both to check the value, just see that we got it
@@ -306,7 +306,7 @@ myDict = {'a': 1}`;
306306 type : 'set' ,
307307 size : 54 ,
308308 shape : '' ,
309- count : 0 ,
309+ count : 1 ,
310310 truncated : false
311311 }
312312 ] ;
@@ -317,7 +317,7 @@ myDict = {'a': 1}`;
317317 }
318318 ) ;
319319
320- runDoubleTest (
320+ runInteractiveTest (
321321 'Variable explorer - Basic B' ,
322322 async ( wrapper ) => {
323323 const basicCode : string = `import numpy as np
@@ -366,7 +366,7 @@ myTuple = 1,2,3,4,5,6,7,8,9
366366 supportsDataExplorer : true ,
367367 type : 'DataFrame' ,
368368 size : 54 ,
369- shape : '' ,
369+ shape : '(3, 1) ' ,
370370 count : 0 ,
371371 truncated : false
372372 } ,
@@ -400,7 +400,7 @@ Name: 0, dtype: float64`,
400400 supportsDataExplorer : true ,
401401 type : 'Series' ,
402402 size : 54 ,
403- shape : '' ,
403+ shape : '(3,) ' ,
404404 count : 0 ,
405405 truncated : false
406406 } ,
@@ -410,7 +410,7 @@ Name: 0, dtype: float64`,
410410 supportsDataExplorer : false ,
411411 type : 'tuple' ,
412412 size : 54 ,
413- shape : '' ,
413+ shape : '9 ' ,
414414 count : 0 ,
415415 truncated : false
416416 } ,
@@ -420,7 +420,7 @@ Name: 0, dtype: float64`,
420420 supportsDataExplorer : true ,
421421 type : 'ndarray' ,
422422 size : 54 ,
423- shape : '' ,
423+ shape : '(3,) ' ,
424424 count : 0 ,
425425 truncated : false
426426 }
@@ -450,7 +450,8 @@ Name: 0, dtype: float64`,
450450 } ;
451451 }
452452
453- // Test our limits. Create 1050 items.
453+ // Test our limits. Create 1050 items. Do this with both to make
454+ // sure no perf problems with one or the other and to smoke test the native editor
454455 runDoubleTest (
455456 'Variable explorer - A lot of items' ,
456457 async ( wrapper ) => {
0 commit comments