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

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

Issue 1211993003: Get more tests passing using the new task model (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 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 | « pkg/analyzer/test/generated/engine_test.dart ('k') | pkg/analyzer/test/src/context/context_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/generated/test_support.dart
diff --git a/pkg/analyzer/test/generated/test_support.dart b/pkg/analyzer/test/generated/test_support.dart
index 2552ea7e416d09aae478138c66a7e9f6e52a5718..666b233b961bf6cdc7c78f444f1894374c135c9b 100644
--- a/pkg/analyzer/test/generated/test_support.dart
+++ b/pkg/analyzer/test/generated/test_support.dart
@@ -551,7 +551,7 @@ class TestLogger implements Logger {
class TestSource extends Source {
String _name;
String _contents;
- int modificationStamp = 0;
+ int _modificationStamp = 0;
bool exists2 = true;
/**
@@ -560,6 +560,9 @@ class TestSource extends Source {
*/
bool generateExceptionOnRead = false;
+ @override
+ int get modificationStamp => generateExceptionOnRead ? -1 : _modificationStamp;
+
/**
* The number of times that the contents of this source have been requested.
*/
@@ -611,7 +614,8 @@ class TestSource extends Source {
return new Uri(scheme: 'file', path: _name).resolveUri(uri);
}
void setContents(String value) {
- modificationStamp = new DateTime.now().millisecondsSinceEpoch;
+ generateExceptionOnRead = false;
+ _modificationStamp = new DateTime.now().millisecondsSinceEpoch;
_contents = value;
}
@override
« no previous file with comments | « pkg/analyzer/test/generated/engine_test.dart ('k') | pkg/analyzer/test/src/context/context_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698