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

Unified Diff: lib/dart.js

Issue 1085353004: Ignore irrelevant link tags in custom HTML. (Closed) Base URL: git@github.com:dart-lang/test@master
Patch Set: Created 5 years, 8 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 | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dart.js
diff --git a/lib/dart.js b/lib/dart.js
index dd7c839356efeac8a6302881208fd6df366a362c..be430d0f179fa7ed2bff941158a8399a7341f0f2 100644
--- a/lib/dart.js
+++ b/lib/dart.js
@@ -30,14 +30,14 @@ for (var i = 0; i < length; ++i) {
if (links[i].rel == "x-dart-test") testLinks.push(links[i]);
}
-if (links.length != 1) {
+if (testLinks.length != 1) {
sendLoadException(
'Expected exactly 1 <link rel="x-dart-test"> in ' + name + ', found ' +
- links.length + '.');
+ testLinks.length + '.');
return;
}
-var link = links[0];
+var link = testLinks[0];
if (link.href == '') {
sendLoadException(
« no previous file with comments | « CHANGELOG.md ('k') | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698