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

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

Issue 335943003: merge to trunk all changes from 36817 until 37378 under the packages: polymer, (Closed) Base URL: http://dart.googlecode.com/svn/trunk/dart/
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
« no previous file with comments | « pkg/polymer/test/build/code_extractor.dart ('k') | pkg/polymer/test/build/import_inliner_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/test/build/common.dart
===================================================================
--- pkg/polymer/test/build/common.dart (revision 37373)
+++ 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 | « pkg/polymer/test/build/code_extractor.dart ('k') | pkg/polymer/test/build/import_inliner_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698