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

Unified Diff: dart/pkg/polymer/test/build/common.dart

Issue 336013003: Version 1.5.0-dev.4.14 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 6 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
Index: dart/pkg/polymer/test/build/common.dart
===================================================================
--- dart/pkg/polymer/test/build/common.dart (revision 37358)
+++ dart/pkg/polymer/test/build/common.dart (working copy)
@@ -75,9 +75,10 @@
var span = entry.span;
var spanInfo = span == null ? '' :
' (${span.sourceUrl} ${span.start.line} ${span.start.column})';
- expect(messagesSeen, lessThan(messages.length),
+ var index = messagesSeen++;
+ expect(messagesSeen, lessThanOrEqualTo(messages.length),
reason: 'more messages than expected.\nMessage seen: $msg$spanInfo');
- expect('$msg$spanInfo', messages[messagesSeen++]);
+ expect('$msg$spanInfo', messages[index]);
});
}
@@ -118,7 +119,7 @@
}).then((_) {
// We only check messages when an expectation is provided.
if (messages == null) return;
- expect(messages.length, messagesSeen,
+ expect(messagesSeen, messages.length,
reason: 'less messages than expected');
});
}
@@ -160,8 +161,12 @@
const DART_JS_TAG = '<script src="packages/browser/dart.js"></script>';
const POLYMER_MOCKS = const {
- 'polymer|lib/polymer.html': '<!DOCTYPE html><html>',
- 'polymer|lib/polymer_experimental.html': '<!DOCTYPE html><html>',
+ 'polymer|lib/src/js/polymer/polymer.html': '<!DOCTYPE html><html>',
+ 'polymer|lib/polymer.html': '<!DOCTYPE html><html>'
+ '<link rel="import" href="src/js/polymer/polymer.html">',
+ 'polymer|lib/polymer_experimental.html':
+ '<!DOCTYPE html><html>'
+ '<link rel="import" href="polymer.html">',
'polymer|lib/polymer.dart':
'library polymer;\n'
'import "dart:html";\n'
« no previous file with comments | « dart/pkg/polymer/test/build/code_extractor.dart ('k') | dart/pkg/polymer/test/build/import_inliner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698