Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Unified Diff: pkg/analyzer/test/generated/all_the_rest_test.dart

Issue 1411083004: Fix tests of DartObject.hasKnownValue. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/all_the_rest_test.dart
diff --git a/pkg/analyzer/test/generated/all_the_rest_test.dart b/pkg/analyzer/test/generated/all_the_rest_test.dart
index 4ea06a63ac806235651bd65a774b36ccee47e27d..0f37f1a862ca659c0c57e7a2ebfdf39a10130f3e 100644
--- a/pkg/analyzer/test/generated/all_the_rest_test.dart
+++ b/pkg/analyzer/test/generated/all_the_rest_test.dart
@@ -3149,7 +3149,7 @@ class DartObjectImplTest extends EngineTestCase {
}
void test_hasKnownValue_bool_unknown() {
- expect(_boolValue(null).hasKnownValue, isTrue);
+ expect(_boolValue(null).hasKnownValue, isFalse);
}
void test_hasKnownValue_double_known() {
@@ -3157,11 +3157,11 @@ class DartObjectImplTest extends EngineTestCase {
}
void test_hasKnownValue_double_unknown() {
- expect(_doubleValue(null).hasKnownValue, isTrue);
+ expect(_doubleValue(null).hasKnownValue, isFalse);
}
void test_hasKnownValue_dynamic() {
- expect(_dynamicValue().hasKnownValue, isFalse);
+ expect(_dynamicValue().hasKnownValue, isTrue);
}
void test_hasKnownValue_int_known() {
@@ -3169,7 +3169,7 @@ class DartObjectImplTest extends EngineTestCase {
}
void test_hasKnownValue_int_unknown() {
- expect(_intValue(null).hasKnownValue, isTrue);
+ expect(_intValue(null).hasKnownValue, isFalse);
}
void test_hasKnownValue_list_empty() {
@@ -3177,7 +3177,7 @@ class DartObjectImplTest extends EngineTestCase {
}
void test_hasKnownValue_list_invalid() {
- expect(_dynamicValue().hasKnownValue, isFalse);
+ expect(_dynamicValue().hasKnownValue, isTrue);
}
void test_hasKnownValue_list_valid() {
@@ -3190,12 +3190,12 @@ class DartObjectImplTest extends EngineTestCase {
void test_hasKnownValue_map_invalidKey() {
expect(_mapValue([_dynamicValue(), _stringValue("value")]).hasKnownValue,
- isFalse);
+ isTrue);
}
void test_hasKnownValue_map_invalidValue() {
expect(_mapValue([_stringValue("key"), _dynamicValue()]).hasKnownValue,
- isFalse);
+ isTrue);
}
void test_hasKnownValue_map_valid() {
@@ -3217,7 +3217,7 @@ class DartObjectImplTest extends EngineTestCase {
}
void test_hasKnownValue_string_unknown() {
- expect(_stringValue(null).hasKnownValue, isTrue);
+ expect(_stringValue(null).hasKnownValue, isFalse);
}
void test_identical_bool_false() {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698