diff --git a/pkg/dev_compiler/lib/src/codegen/js_codegen.dart b/pkg/dev_compiler/lib/src/codegen/js_codegen.dart index 8a7695734896..4f9878a4fcec 100644 --- a/pkg/dev_compiler/lib/src/codegen/js_codegen.dart +++ b/pkg/dev_compiler/lib/src/codegen/js_codegen.dart @@ -253,6 +253,9 @@ class JSCodegenVisitor extends GeneralizingAstVisitor { var from = getStaticType(node.expression); var to = node.type.type; + // Skip the cast if it's not needed. + if (rules.isSubTypeOf(from, to)) return _visit(node.expression); + // All Dart number types map to a JS double. if (rules.isNumType(from) && (rules.isIntType(to) || rules.isDoubleType(to))) { diff --git a/pkg/dev_compiler/test/codegen/expect/js_test.txt b/pkg/dev_compiler/test/codegen/expect/js_test.txt index 0e07ee865a60..ccced3595a6d 100644 --- a/pkg/dev_compiler/test/codegen/expect/js_test.txt +++ b/pkg/dev_compiler/test/codegen/expect/js_test.txt @@ -1,323 +1,323 @@ // Messages from compiling js_test.dart -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 669, col 9) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 136, col 7) -severe: [AnalyzerMessage] Undefined name 'isRangeError' (test/codegen/js_test.dart, line 363, col 53) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 321, col 5) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 612, col 7) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 512, col 5) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 198, col 5) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 234, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 516, col 7) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 41, col 5) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 693, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 531, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 97, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 269, col 7) +severe: [AnalyzerMessage] The method 'group' is not defined for the class 'Color' (test/codegen/js_test.dart, line 389, col 3) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 304, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 367, col 5) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 562, col 7) -severe: [AnalyzerMessage] Undefined name 'document' (test/codegen/js_test.dart, line 675, col 24) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 370, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 531, col 7) +severe: [AnalyzerMessage] Undefined name 'isNotNull' (test/codegen/js_test.dart, line 141, col 39) severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 632, col 7) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 598, col 9) severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 57, col 5) -severe: [AnalyzerMessage] Undefined name 'isNotNull' (test/codegen/js_test.dart, line 141, col 39) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 367, col 5) -severe: [AnalyzerMessage] The method 'group' is not defined for the class 'Color' (test/codegen/js_test.dart, line 389, col 3) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 304, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 97, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 269, col 7) -severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 355, col 40) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 685, col 9) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 499, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 220, col 7) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 581, col 7) -severe: [AnalyzerMessage] Undefined class 'CanvasElement' (test/codegen/js_test.dart, line 694, col 9) -severe: [AnalyzerMessage] Undefined name 'isRangeError' (test/codegen/js_test.dart, line 347, col 48) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 682, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 287, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 618, col 9) -severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 402, col 13) -severe: [AnalyzerMessage] Undefined name 'isNotNull' (test/codegen/js_test.dart, line 187, col 17) -severe: [AnalyzerMessage] The name 'Blob' is not defined and cannot be used in an 'is' expression (test/codegen/js_test.dart, line 618, col 24) +severe: [AnalyzerMessage] Undefined name 'document' (test/codegen/js_test.dart, line 675, col 24) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 370, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 234, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 612, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 512, col 5) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 198, col 5) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 693, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 41, col 5) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 516, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 136, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 669, col 9) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 321, col 5) +severe: [AnalyzerMessage] Undefined name 'isRangeError' (test/codegen/js_test.dart, line 363, col 53) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 469, col 7) +severe: [AnalyzerMessage] The method 'group' is not defined for the class 'Color' (test/codegen/js_test.dart, line 75, col 5) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 288, col 7) severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 466, col 5) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 167, col 7) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 270, col 7) -severe: [AnalyzerMessage] The method 'group' is not defined for the class 'Color' (test/codegen/js_test.dart, line 75, col 5) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 288, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 469, col 7) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 116, col 5) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 254, col 7) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 563, col 7) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 119, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 254, col 7) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 214, col 5) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 149, col 5) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 649, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 401, col 9) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 162, col 5) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 582, col 9) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 133, col 7) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 665, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 339, col 7) -severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 339, col 43) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 560, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 251, col 7) -severe: [AnalyzerMessage] The method 'isNot' is not defined for the class 'Color' (test/codegen/js_test.dart, line 280, col 17) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 116, col 5) +severe: [AnalyzerMessage] Undefined name 'isNotNull' (test/codegen/js_test.dart, line 187, col 17) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 618, col 9) +severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 402, col 13) +severe: [AnalyzerMessage] The name 'Blob' is not defined and cannot be used in an 'is' expression (test/codegen/js_test.dart, line 618, col 24) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 685, col 9) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 499, col 7) +severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 355, col 40) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 682, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 287, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 581, col 7) +severe: [AnalyzerMessage] Undefined class 'CanvasElement' (test/codegen/js_test.dart, line 694, col 9) +severe: [AnalyzerMessage] Undefined name 'isRangeError' (test/codegen/js_test.dart, line 347, col 48) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 220, col 7) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 597, col 9) severe: [AnalyzerMessage] Undefined name 'isRangeError' (test/codegen/js_test.dart, line 362, col 54) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 90, col 5) severe: [AnalyzerMessage] The method 'group' is not defined for the class 'Color' (test/codegen/js_test.dart, line 639, col 5) -severe: [AnalyzerMessage] The method 'isNot' is not defined for the class 'Color' (test/codegen/js_test.dart, line 592, col 31) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 152, col 7) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 418, col 5) -severe: [AnalyzerMessage] Undefined name 'isRangeError' (test/codegen/js_test.dart, line 346, col 47) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 528, col 5) -severe: [AnalyzerMessage] The method 'same' is not defined for the class 'Color' (test/codegen/js_test.dart, line 225, col 64) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 355, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 90, col 5) +severe: [AnalyzerMessage] The method 'isNot' is not defined for the class 'Color' (test/codegen/js_test.dart, line 280, col 17) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 251, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 560, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 162, col 5) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 401, col 9) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 339, col 7) +severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 339, col 43) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 665, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 582, col 9) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 133, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 214, col 5) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 149, col 5) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 649, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 435, col 7) +severe: [AnalyzerMessage] The name 'Event' is not defined and cannot be used in an 'is' expression (test/codegen/js_test.dart, line 603, col 39) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 96, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 634, col 9) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 498, col 7) +severe: [AnalyzerMessage] The name 'Window' is not defined and cannot be used in an 'is' expression (test/codegen/js_test.dart, line 582, col 37) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 200, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 481, col 9) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 515, col 7) severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 399, col 5) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 182, col 7) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 44, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 515, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 481, col 9) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 545, col 7) -severe: [AnalyzerMessage] The method 'equals' is not defined for the class 'Color' (test/codegen/js_test.dart, line 52, col 18) severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 557, col 5) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 530, col 7) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 324, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 634, col 9) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 96, col 7) -severe: [AnalyzerMessage] The name 'Event' is not defined and cannot be used in an 'is' expression (test/codegen/js_test.dart, line 603, col 39) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 200, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 498, col 7) -severe: [AnalyzerMessage] The name 'Window' is not defined and cannot be used in an 'is' expression (test/codegen/js_test.dart, line 582, col 37) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 435, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 496, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 230, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 462, col 9) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 352, col 7) -severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 338, col 42) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 479, col 7) -severe: [AnalyzerMessage] Undefined name 'document' (test/codegen/js_test.dart, line 586, col 22) -severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 230, col 50) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 585, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 338, col 7) -severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 299, col 34) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 419, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 299, col 7) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 391, col 5) -severe: [AnalyzerMessage] The name 'DivElement' is not defined and cannot be used in an 'is' expression (test/codegen/js_test.dart, line 624, col 24) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 180, col 7) +severe: [AnalyzerMessage] The method 'equals' is not defined for the class 'Color' (test/codegen/js_test.dart, line 52, col 18) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 545, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 152, col 7) +severe: [AnalyzerMessage] The method 'isNot' is not defined for the class 'Color' (test/codegen/js_test.dart, line 592, col 31) +severe: [AnalyzerMessage] The method 'same' is not defined for the class 'Color' (test/codegen/js_test.dart, line 225, col 64) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 355, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 528, col 5) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 418, col 5) +severe: [AnalyzerMessage] Undefined name 'isRangeError' (test/codegen/js_test.dart, line 346, col 47) +severe: [AnalyzerMessage] Undefined name 'isRangeError' (test/codegen/js_test.dart, line 290, col 38) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 342, col 5) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 613, col 9) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 544, col 7) severe: [AnalyzerMessage] The method 'group' is not defined for the class 'Color' (test/codegen/js_test.dart, line 39, col 3) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 250, col 7) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 342, col 5) -severe: [AnalyzerMessage] Undefined name 'isRangeError' (test/codegen/js_test.dart, line 290, col 38) -severe: [AnalyzerMessage] Undefined name 'isNoSuchMethodError' (test/codegen/js_test.dart, line 113, col 51) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 266, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 180, col 7) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 92, col 7) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 281, col 7) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 139, col 5) -severe: [AnalyzerMessage] Undefined name 'document' (test/codegen/js_test.dart, line 587, col 9) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 203, col 5) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 185, col 5) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 155, col 5) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 559, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 132, col 7) -severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 113, col 43) -severe: [AnalyzerMessage] Undefined name 'document' (test/codegen/js_test.dart, line 658, col 24) -severe: [AnalyzerMessage] The method 'group' is not defined for the class 'Color' (test/codegen/js_test.dart, line 510, col 3) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 353, col 7) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 358, col 5) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 652, col 9) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 448, col 7) -severe: [AnalyzerMessage] Undefined name 'document' (test/codegen/js_test.dart, line 392, col 49) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 216, col 7) +severe: [AnalyzerMessage] Undefined name 'isNoSuchMethodError' (test/codegen/js_test.dart, line 113, col 51) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 266, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 419, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 391, col 5) +severe: [AnalyzerMessage] The name 'DivElement' is not defined and cannot be used in an 'is' expression (test/codegen/js_test.dart, line 624, col 24) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 299, col 7) +severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 338, col 42) +severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 299, col 34) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 585, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 338, col 7) +severe: [AnalyzerMessage] Undefined name 'document' (test/codegen/js_test.dart, line 586, col 22) +severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 230, col 50) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 479, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 496, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 230, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 462, col 9) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 352, col 7) severe: [AnalyzerMessage] Undefined name 'isNoSuchMethodError' (test/codegen/js_test.dart, line 230, col 58) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 384, col 7) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 497, col 7) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 181, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 384, col 7) -severe: [AnalyzerMessage] Undefined name 'isRangeError' (test/codegen/js_test.dart, line 289, col 39) -severe: [AnalyzerMessage] Undefined name 'throws' (test/codegen/js_test.dart, line 410, col 58) -severe: [AnalyzerMessage] The name 'Window' is not defined and cannot be used in an 'is' expression (test/codegen/js_test.dart, line 592, col 49) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 95, col 5) -severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 364, col 45) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 279, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 364, col 7) -severe: [AnalyzerMessage] The method 'isNot' is not defined for the class 'Color' (test/codegen/js_test.dart, line 597, col 28) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 448, col 7) +severe: [AnalyzerMessage] Undefined name 'document' (test/codegen/js_test.dart, line 392, col 49) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 652, col 9) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 216, col 7) +severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 113, col 43) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 132, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 559, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 155, col 5) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 358, col 5) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 353, col 7) +severe: [AnalyzerMessage] Undefined name 'document' (test/codegen/js_test.dart, line 658, col 24) +severe: [AnalyzerMessage] The method 'group' is not defined for the class 'Color' (test/codegen/js_test.dart, line 510, col 3) +severe: [AnalyzerMessage] Undefined name 'document' (test/codegen/js_test.dart, line 587, col 9) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 203, col 5) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 139, col 5) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 185, col 5) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 195, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 302, col 5) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 609, col 9) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 298, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 233, col 5) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 495, col 7) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 229, col 7) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 233, col 5) -severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 298, col 35) +severe: [AnalyzerMessage] The method 'isNot' is not defined for the class 'Color' (test/codegen/js_test.dart, line 597, col 28) severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 616, col 7) severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 285, col 5) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 195, col 7) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 302, col 5) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 298, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 609, col 9) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 318, col 7) +severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 298, col 35) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 95, col 5) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 279, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 364, col 7) +severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 364, col 45) +severe: [AnalyzerMessage] Undefined name 'throws' (test/codegen/js_test.dart, line 410, col 58) +severe: [AnalyzerMessage] The name 'Window' is not defined and cannot be used in an 'is' expression (test/codegen/js_test.dart, line 592, col 49) +severe: [AnalyzerMessage] Undefined name 'isRangeError' (test/codegen/js_test.dart, line 289, col 39) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 578, col 9) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 423, col 5) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 91, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 71, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 219, col 5) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 280, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 629, col 9) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 76, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 113, col 7) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 593, col 9) severe: [AnalyzerMessage] Undefined name 'isNotNull' (test/codegen/js_test.dart, line 172, col 17) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 129, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 113, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 318, col 7) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 337, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 629, col 9) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 219, col 5) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 280, col 7) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 76, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 71, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 578, col 9) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 423, col 5) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 91, col 7) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 49, col 5) +severe: [AnalyzerMessage] The method 'group' is not defined for the class 'Color' (test/codegen/js_test.dart, line 572, col 3) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 674, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 146, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 375, col 5) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 175, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 52, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 622, col 7) +severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 363, col 45) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 261, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 429, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 170, col 5) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 274, col 5) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 521, col 5) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 553, col 7) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 363, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 49, col 5) +severe: [AnalyzerMessage] The method 'isNot' is not defined for the class 'Color' (test/codegen/js_test.dart, line 603, col 21) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 330, col 5) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 378, col 7) severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 506, col 11) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 413, col 7) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 191, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 378, col 7) -severe: [AnalyzerMessage] The method 'isNot' is not defined for the class 'Color' (test/codegen/js_test.dart, line 603, col 21) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 330, col 5) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 261, col 7) -severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 363, col 45) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 622, col 7) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 521, col 5) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 274, col 5) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 429, col 7) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 170, col 5) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 52, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 175, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 146, col 7) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 375, col 5) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 674, col 7) -severe: [AnalyzerMessage] The method 'group' is not defined for the class 'Color' (test/codegen/js_test.dart, line 572, col 3) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 460, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 335, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 677, col 9) -severe: [AnalyzerMessage] Undefined class 'Blob' (test/codegen/js_test.dart, line 667, col 28) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 111, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 192, col 7) -severe: [AnalyzerMessage] Undefined name 'isNotNull' (test/codegen/js_test.dart, line 180, col 17) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 112, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 144, col 5) +severe: [AnalyzerMessage] Undefined name 'isRangeError' (test/codegen/js_test.dart, line 355, col 48) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 504, col 5) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 316, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 297, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 525, col 7) +severe: [AnalyzerMessage] The name 'Event' is not defined and cannot be used in an 'is' expression (test/codegen/js_test.dart, line 629, col 25) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 554, col 7) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 396, col 7) severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 347, col 40) +severe: [AnalyzerMessage] Undefined name 'isNotNull' (test/codegen/js_test.dart, line 180, col 17) +severe: [AnalyzerMessage] The name 'Document' is not defined and cannot be used in an 'is' expression (test/codegen/js_test.dart, line 613, col 39) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 592, col 9) severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 550, col 5) -severe: [AnalyzerMessage] The name 'Document' is not defined and cannot be used in an 'is' expression (test/codegen/js_test.dart, line 613, col 39) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 297, col 7) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 504, col 5) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 316, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 554, col 7) -severe: [AnalyzerMessage] The name 'Event' is not defined and cannot be used in an 'is' expression (test/codegen/js_test.dart, line 629, col 25) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 525, col 7) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 144, col 5) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 112, col 7) -severe: [AnalyzerMessage] Undefined name 'isRangeError' (test/codegen/js_test.dart, line 355, col 48) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 485, col 5) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 394, col 7) -severe: [AnalyzerMessage] Undefined name 'isRangeError' (test/codegen/js_test.dart, line 339, col 51) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 335, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 460, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 192, col 7) +severe: [AnalyzerMessage] Undefined class 'Blob' (test/codegen/js_test.dart, line 667, col 28) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 111, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 677, col 9) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 260, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 472, col 9) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 172, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 523, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 439, col 5) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 240, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 223, col 5) +severe: [AnalyzerMessage] The method 'isNot' is not defined for the class 'Color' (test/codegen/js_test.dart, line 62, col 20) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 100, col 5) +severe: [AnalyzerMessage] The method 'group' is not defined for the class 'Color' (test/codegen/js_test.dart, line 88, col 3) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 534, col 5) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 276, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 657, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 604, col 11) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 537, col 7) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 125, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 644, col 9) +severe: [AnalyzerMessage] Undefined name 'isRangeError' (test/codegen/js_test.dart, line 339, col 51) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 394, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 485, col 5) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 362, col 7) severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 641, col 7) severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 362, col 46) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 362, col 7) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 534, col 5) -severe: [AnalyzerMessage] The method 'group' is not defined for the class 'Color' (test/codegen/js_test.dart, line 88, col 3) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 100, col 5) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 657, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 604, col 11) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 276, col 7) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 223, col 5) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 240, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 523, col 7) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 439, col 5) -severe: [AnalyzerMessage] The method 'isNot' is not defined for the class 'Color' (test/codegen/js_test.dart, line 62, col 20) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 260, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 172, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 472, col 9) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 409, col 5) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 456, col 5) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 238, col 5) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 208, col 7) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 257, col 5) -severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 346, col 39) -severe: [AnalyzerMessage] The method 'group' is not defined for the class 'Color' (test/codegen/js_test.dart, line 245, col 3) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 644, col 9) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 538, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 82, col 9) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 159, col 7) +severe: [AnalyzerMessage] The method 'group' is not defined for the class 'Color' (test/codegen/js_test.dart, line 574, col 5) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 505, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 442, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 123, col 5) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 395, col 7) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 333, col 7) -severe: [AnalyzerMessage] The method 'group' is not defined for the class 'Color' (test/codegen/js_test.dart, line 212, col 3) +severe: [AnalyzerMessage] The method 'group' is not defined for the class 'Color' (test/codegen/js_test.dart, line 245, col 3) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 257, col 5) +severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 346, col 39) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 624, col 9) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 459, col 7) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 347, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 624, col 9) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 442, col 7) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 123, col 5) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 505, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 82, col 9) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 538, col 7) -severe: [AnalyzerMessage] The method 'group' is not defined for the class 'Color' (test/codegen/js_test.dart, line 574, col 5) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 159, col 7) -severe: [AnalyzerMessage] Undefined name 'isRangeError' (test/codegen/js_test.dart, line 299, col 42) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 308, col 7) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 68, col 5) -severe: [AnalyzerMessage] Undefined name 'isRangeError' (test/codegen/js_test.dart, line 338, col 50) -severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 290, col 30) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 102, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 290, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 345, col 7) -severe: [AnalyzerMessage] Undefined name 'isNotNull' (test/codegen/js_test.dart, line 200, col 39) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 63, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 698, col 9) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 627, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 501, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 536, col 7) +severe: [AnalyzerMessage] The method 'group' is not defined for the class 'Color' (test/codegen/js_test.dart, line 212, col 3) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 409, col 5) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 208, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 238, col 5) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 456, col 5) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 603, col 11) severe: [AnalyzerMessage] Undefined name 'window' (test/codegen/js_test.dart, line 650, col 24) severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 228, col 5) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 187, col 7) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 361, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 603, col 11) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 445, col 5) +severe: [AnalyzerMessage] The method 'same' is not defined for the class 'Color' (test/codegen/js_test.dart, line 71, col 30) severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 476, col 5) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 410, col 7) -severe: [AnalyzerMessage] The method 'same' is not defined for the class 'Color' (test/codegen/js_test.dart, line 71, col 30) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 445, col 5) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 576, col 7) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 432, col 5) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 381, col 5) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 350, col 5) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 239, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 346, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 80, col 9) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 178, col 5) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 660, col 9) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 541, col 5) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 567, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 206, col 9) +severe: [AnalyzerMessage] Undefined name 'isNotNull' (test/codegen/js_test.dart, line 200, col 39) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 63, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 536, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 501, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 698, col 9) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 627, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 290, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 345, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 308, col 7) +severe: [AnalyzerMessage] Undefined name 'isRangeError' (test/codegen/js_test.dart, line 299, col 42) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 102, col 7) +severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 290, col 30) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 68, col 5) +severe: [AnalyzerMessage] Undefined name 'isRangeError' (test/codegen/js_test.dart, line 338, col 50) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 225, col 7) severe: [AnalyzerMessage] The method 'group' is not defined for the class 'Color' (test/codegen/js_test.dart, line 454, col 3) severe: [AnalyzerMessage] The method 'group' is not defined for the class 'Color' (test/codegen/js_test.dart, line 408, col 3) severe: [AnalyzerMessage] Undefined class 'CustomEvent' (test/codegen/js_test.dart, line 683, col 28) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 225, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 310, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 206, col 9) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 188, col 7) severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 247, col 5) severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 264, col 5) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 293, col 4) -severe: [AnalyzerMessage] Undefined name 'isRangeError' (test/codegen/js_test.dart, line 364, col 53) -severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 109, col 5) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 306, col 7) -severe: [AnalyzerMessage] Undefined name 'isRangeError' (test/codegen/js_test.dart, line 298, col 43) -severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 289, col 31) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 289, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 310, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 541, col 5) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 660, col 9) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 178, col 5) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 567, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 80, col 9) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 346, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 576, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 432, col 5) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 239, col 7) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 350, col 5) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 381, col 5) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 518, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 500, col 7) +severe: [AnalyzerMessage] The method 'group' is not defined for the class 'Color' (test/codegen/js_test.dart, line 107, col 3) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 120, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 289, col 7) +severe: [AnalyzerMessage] The name 'ImageData' is not defined and cannot be used in an 'is' expression (test/codegen/js_test.dart, line 634, col 24) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 619, col 9) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 547, col 7) -severe: [AnalyzerMessage] The name 'ImageData' is not defined and cannot be used in an 'is' expression (test/codegen/js_test.dart, line 634, col 24) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 518, col 7) -severe: [AnalyzerMessage] The method 'group' is not defined for the class 'Color' (test/codegen/js_test.dart, line 107, col 3) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 500, col 7) -severe: [AnalyzerMessage] Undefined name 'document' (test/codegen/js_test.dart, line 694, col 32) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 327, col 7) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 344, col 7) +severe: [AnalyzerMessage] Undefined name 'isRangeError' (test/codegen/js_test.dart, line 298, col 43) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 306, col 7) +severe: [AnalyzerMessage] The method 'throwsA' is not defined for the class 'Color' (test/codegen/js_test.dart, line 289, col 31) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 293, col 4) +severe: [AnalyzerMessage] Undefined name 'isRangeError' (test/codegen/js_test.dart, line 364, col 53) +severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 109, col 5) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 470, col 7) +severe: [AnalyzerMessage] The name 'Node' is not defined and cannot be used in an 'is' expression (test/codegen/js_test.dart, line 597, col 46) +severe: [AnalyzerMessage] The name 'CanvasRenderingContext2D' is not a type and cannot be used in an 'as' expression (test/codegen/js_test.dart, line 695, col 46) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 141, col 7) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 372, col 7) severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 62, col 7) severe: [AnalyzerMessage] The method 'test' is not defined for the class 'Color' (test/codegen/js_test.dart, line 313, col 6) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 141, col 7) -severe: [AnalyzerMessage] The name 'CanvasRenderingContext2D' is not a type and cannot be used in an 'as' expression (test/codegen/js_test.dart, line 695, col 46) -severe: [AnalyzerMessage] The name 'Node' is not defined and cannot be used in an 'is' expression (test/codegen/js_test.dart, line 597, col 46) -severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 470, col 7) +severe: [AnalyzerMessage] Undefined name 'document' (test/codegen/js_test.dart, line 694, col 32) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 344, col 7) +severe: [AnalyzerMessage] The method 'expect' is not defined for the class 'Color' (test/codegen/js_test.dart, line 327, col 7) severe: [AnalyzerMessage] Target of URI does not exist: 'minitest.dart' (test/codegen/js_test.dart, line 11, col 8) severe: [AnalyzerMessage] Target of URI does not exist: 'dom.dart' (test/codegen/js_test.dart, line 10, col 8) info: [DynamicCast] context['Foo'] (dynamic) will need runtime check to cast to type JsFunction (test/codegen/js_test.dart, line 16, col 43) diff --git a/pkg/dev_compiler/test/codegen/expect/sunflower/sunflower.html b/pkg/dev_compiler/test/codegen/expect/sunflower/sunflower.html index 62c60f7fade3..aab058cab73a 100644 --- a/pkg/dev_compiler/test/codegen/expect/sunflower/sunflower.html +++ b/pkg/dev_compiler/test/codegen/expect/sunflower/sunflower.html @@ -51,8 +51,8 @@

drfibonacci's Sunflower Spectacular

- + diff --git a/pkg/dev_compiler/test/codegen/expect/unittest.js b/pkg/dev_compiler/test/codegen/expect/unittest.js index a25d8d65da4c..e6b818c85e45 100644 --- a/pkg/dev_compiler/test/codegen/expect/unittest.js +++ b/pkg/dev_compiler/test/codegen/expect/unittest.js @@ -8,7 +8,7 @@ dart_library.library('unittest', null, /* Imports */[ 'use strict'; let dartx = dart.dartx; function group(name, body) { - return dart.dsend(dart.as(dom.window, dart.dynamic), 'suite', name, body); + return dart.dsend(dom.window, 'suite', name, body); } dart.fn(group, dart.void, [core.String, dart.functionType(dart.void, [])]); function test(name, body, opts) { @@ -17,7 +17,7 @@ dart_library.library('unittest', null, /* Imports */[ core.print(`SKIP ${name}: ${skip}`); return; } - dart.dsend(dart.as(dom.window, dart.dynamic), 'test', name, dart.fn(done => { + dart.dsend(dom.window, 'test', name, dart.fn(done => { function _finishTest(f) { if (dart.is(f, async.Future)) { dart.dsend(f, 'then', _finishTest); diff --git a/pkg/dev_compiler/test/codegen/expect/unittest/unittest.js b/pkg/dev_compiler/test/codegen/expect/unittest/unittest.js index 70700e8f6fbf..06ff55a4dcf3 100644 --- a/pkg/dev_compiler/test/codegen/expect/unittest/unittest.js +++ b/pkg/dev_compiler/test/codegen/expect/unittest/unittest.js @@ -8,7 +8,7 @@ dart_library.library('unittest/unittest', null, /* Imports */[ 'use strict'; let dartx = dart.dartx; function group(name, body) { - return dart.dsend(dart.as(dom.window, dart.dynamic), 'suite', name, body); + return dart.dsend(dom.window, 'suite', name, body); } dart.fn(group, dart.void, [core.String, dart.functionType(dart.void, [])]); function test(name, body, opts) { @@ -17,7 +17,7 @@ dart_library.library('unittest/unittest', null, /* Imports */[ core.print(`SKIP ${name}: ${skip}`); return; } - dart.dsend(dart.as(dom.window, dart.dynamic), 'test', name, dart.fn(done => { + dart.dsend(dom.window, 'test', name, dart.fn(done => { function _finishTest(f) { if (dart.is(f, async.Future)) { dart.dsend(f, 'then', _finishTest);