@@ -429,14 +429,19 @@ void main() {
429
429
});
430
430
431
431
test ('Event.exception constructed' , () {
432
- Event generateEvent () => Event .exception (exception: 'exception' );
432
+ Event generateEvent () => Event .exception (
433
+ exception: 'exception' ,
434
+ data: {'foo' : 'bar' , 'baz' : 1 },
435
+ );
433
436
434
437
final constructedEvent = generateEvent ();
435
438
436
439
expect (generateEvent, returnsNormally);
437
440
expect (constructedEvent.eventName, DashEvent .exception);
438
441
expect (constructedEvent.eventData['exception' ], 'exception' );
439
- expect (constructedEvent.eventData.length, 1 );
442
+ expect (constructedEvent.eventData['foo' ], 'bar' );
443
+ expect (constructedEvent.eventData['baz' ], 1 );
444
+ expect (constructedEvent.eventData.length, 3 );
440
445
});
441
446
442
447
test ('Event.timing constructed' , () {
@@ -570,6 +575,7 @@ void main() {
570
575
isExternalBuild: 'isExternalBuild' ,
571
576
isEmbedded: 'isEmbedded' ,
572
577
ideLaunchedFeature: 'ideLaunchedFeature' ,
578
+ isWasm: 'true' ,
573
579
uiDurationMicros: 123 ,
574
580
rasterDurationMicros: 123 ,
575
581
shaderCompilationDurationMicros: 123 ,
@@ -603,6 +609,8 @@ void main() {
603
609
expect (constructedEvent.eventData['isEmbedded' ], 'isEmbedded' );
604
610
expect (
605
611
constructedEvent.eventData['ideLaunchedFeature' ], 'ideLaunchedFeature' );
612
+ expect (constructedEvent.eventData['isWasm' ], 'true' );
613
+
606
614
expect (constructedEvent.eventData['uiDurationMicros' ], 123 );
607
615
expect (constructedEvent.eventData['rasterDurationMicros' ], 123 );
608
616
expect (constructedEvent.eventData['shaderCompilationDurationMicros' ], 123 );
@@ -615,7 +623,7 @@ void main() {
615
623
expect (constructedEvent.eventData['rootSetCount' ], 123 );
616
624
expect (constructedEvent.eventData['rowCount' ], 123 );
617
625
expect (constructedEvent.eventData['inspectorTreeControllerId' ], 123 );
618
- expect (constructedEvent.eventData.length, 27 );
626
+ expect (constructedEvent.eventData.length, 28 );
619
627
});
620
628
621
629
test ('Confirm all constructors were checked' , () {
0 commit comments