@@ -25,7 +25,7 @@ describe('bp', function() {
25
25
bp . _container . appendChild ( sampleRangeValue ) ;
26
26
27
27
bp . runState = {
28
- numSamples : 10 ,
28
+ numSamples : 20 ,
29
29
recentTimePerStep : { } ,
30
30
recentGCTimePerStep : { } ,
31
31
timesPerAction : { }
@@ -189,9 +189,9 @@ describe('bp', function() {
189
189
190
190
describe ( '.addSampleRange()' , function ( ) {
191
191
it ( 'should set the default value to the current numSamples' , function ( ) {
192
- bp . runState . numSamples = 10 ;
192
+ bp . runState . numSamples = 20 ;
193
193
bp . addSampleRange ( ) ;
194
- expect ( bp . sampleRange . value ) . toBe ( '10 ' ) ;
194
+ expect ( bp . sampleRange . value ) . toBe ( '20 ' ) ;
195
195
} ) ;
196
196
} ) ;
197
197
@@ -203,7 +203,7 @@ describe('bp', function() {
203
203
204
204
205
205
it ( 'should change the numSamples property' , function ( ) {
206
- expect ( bp . runState . numSamples ) . toBe ( 10 ) ;
206
+ expect ( bp . runState . numSamples ) . toBe ( 20 ) ;
207
207
bp . onSampleRangeChanged ( { target : { value : '80' } } ) ;
208
208
expect ( bp . runState . numSamples ) . toBe ( 80 ) ;
209
209
} ) ;
@@ -241,9 +241,9 @@ describe('bp', function() {
241
241
242
242
describe ( '.setIterations()' , function ( ) {
243
243
it ( 'should set provided arguments to runState object' , function ( ) {
244
- bp . runState = { numSamples : 10 } ;
244
+ bp . runState = { numSamples : 20 } ;
245
245
bp . setIterations ( 15 ) ;
246
- expect ( bp . runState . numSamples ) . toBe ( 10 ) ;
246
+ expect ( bp . runState . numSamples ) . toBe ( 20 ) ;
247
247
expect ( bp . runState . iterations ) . toBe ( 15 ) ;
248
248
} ) ;
249
249
} ) ;
@@ -429,7 +429,7 @@ describe('bp', function() {
429
429
it ( 'should return an html string with provided values' , function ( ) {
430
430
bp . runState . numSamples = 9 ;
431
431
expect ( bp . generateReportPartial ( 'foo' , { time : 10 , gcTime : 5 } , [ '9' , '11' ] , [ '4' , '6' ] ) ) .
432
- toBe ( '<tr><td>foo</td><td class="average">test:10ms<br>gc:5ms<br>combined: 15ms</td><td>9<br>11</td><td >4<br>6</td></tr>' )
432
+ toBe ( '<tr class="sampleContainer" ><td>foo</td><td class="average">test:10ms<br>gc:5ms<br>combined: 15ms</td><td><div class="sampleContainer"><div class="testTimeCol"> 9<br>11</div><div class="testTimeCol" >4<br>6</div></div> </td></tr>' )
433
433
} ) ;
434
434
} ) ;
435
435
0 commit comments