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

Unified Diff: tests/language/type_vm_test.dart

Issue 10704216: Fix type checking of void type. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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 | « tests/language/type_cast_vm_test.dart ('k') | tests/language/void_type_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/type_vm_test.dart
===================================================================
--- tests/language/type_vm_test.dart (revision 9671)
+++ tests/language/type_vm_test.dart (working copy)
@@ -13,7 +13,7 @@
} catch (TypeError error) {
result = 1;
Expect.equals("int", error.dstType);
- Expect.equals("OneByteString", error.srcType);
+ Expect.equals("String", error.srcType);
Expect.equals("i", error.dstName);
int pos = error.url.lastIndexOf("/", error.url.length);
if (pos == -1) {
@@ -54,7 +54,7 @@
} catch (TypeError error) {
result = 1;
Expect.equals("int", error.dstType);
- Expect.equals("OneByteString", error.srcType);
+ Expect.equals("String", error.srcType);
Expect.equals("i", error.dstName);
int pos = error.url.lastIndexOf("/", error.url.length);
if (pos == -1) {
@@ -78,7 +78,7 @@
} catch (TypeError error) {
result = 1;
Expect.equals("int", error.dstType);
- Expect.equals("OneByteString", error.srcType);
+ Expect.equals("String", error.srcType);
Expect.equals("function result", error.dstName);
int pos = error.url.lastIndexOf("/", error.url.length);
if (pos == -1) {
@@ -100,7 +100,7 @@
} catch (TypeError error) {
result = 1;
Expect.equals("int", error.dstType);
- Expect.equals("OneByteString", error.srcType);
+ Expect.equals("String", error.srcType);
Expect.equals("field", error.dstName);
int pos = error.url.lastIndexOf("/", error.url.length);
if (pos == -1) {
@@ -210,7 +210,7 @@
} catch (TypeError error) {
result++;
Expect.equals("bool", error.dstType);
- Expect.equals("OneByteString", error.srcType);
+ Expect.equals("String", error.srcType);
Expect.equals("boolean expression", error.dstName);
int pos = error.url.lastIndexOf("/", error.url.length);
if (pos == -1) {
@@ -226,7 +226,7 @@
} catch (TypeError error) {
result++;
Expect.equals("bool", error.dstType);
- Expect.equals("OneByteString", error.srcType);
+ Expect.equals("String", error.srcType);
Expect.equals("boolean expression", error.dstName);
int pos = error.url.lastIndexOf("/", error.url.length);
if (pos == -1) {
@@ -242,7 +242,7 @@
} catch (TypeError error) {
result++;
Expect.equals("bool", error.dstType);
- Expect.equals("OneByteString", error.srcType);
+ Expect.equals("String", error.srcType);
Expect.equals("boolean expression", error.dstName);
int pos = error.url.lastIndexOf("/", error.url.length);
if (pos == -1) {
@@ -258,7 +258,7 @@
} catch (TypeError error) {
result++;
Expect.equals("bool", error.dstType);
- Expect.equals("OneByteString", error.srcType);
+ Expect.equals("String", error.srcType);
Expect.equals("boolean expression", error.dstName);
int pos = error.url.lastIndexOf("/", error.url.length);
if (pos == -1) {
@@ -274,7 +274,7 @@
} catch (TypeError error) {
result++;
Expect.equals("bool", error.dstType);
- Expect.equals("OneByteString", error.srcType);
+ Expect.equals("String", error.srcType);
Expect.equals("boolean expression", error.dstName);
int pos = error.url.lastIndexOf("/", error.url.length);
if (pos == -1) {
@@ -290,7 +290,7 @@
} catch (TypeError error) {
result++;
Expect.equals("bool", error.dstType);
- Expect.equals("OneByteString", error.srcType);
+ Expect.equals("String", error.srcType);
Expect.equals("boolean expression", error.dstName);
int pos = error.url.lastIndexOf("/", error.url.length);
if (pos == -1) {
@@ -306,7 +306,7 @@
} catch (TypeError error) {
result++;
Expect.equals("bool", error.dstType);
- Expect.equals("OneByteString", error.srcType);
+ Expect.equals("String", error.srcType);
Expect.equals("boolean expression", error.dstName);
int pos = error.url.lastIndexOf("/", error.url.length);
if (pos == -1) {
@@ -322,7 +322,7 @@
} catch (TypeError error) {
result++;
Expect.equals("bool", error.dstType);
- Expect.equals("OneByteString", error.srcType);
+ Expect.equals("String", error.srcType);
Expect.equals("boolean expression", error.dstName);
int pos = error.url.lastIndexOf("/", error.url.length);
if (pos == -1) {
« no previous file with comments | « tests/language/type_cast_vm_test.dart ('k') | tests/language/void_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698