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

Unified Diff: pkg/polymer/lib/testing/testing.js

Issue 23445009: Prune the old deploy code. This CL does a few changes: (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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/lib/testing/content_shell_test.dart ('k') | pkg/polymer/test/compiler_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/polymer/lib/testing/testing.js
diff --git a/pkg/polymer/lib/testing/testing.js b/pkg/polymer/lib/testing/testing.js
index 957a48c1d70696faff3124c493e289347f09f7fc..3c22f05c7d672e26eb80603cecbd4572c239cdac 100644
--- a/pkg/polymer/lib/testing/testing.js
+++ b/pkg/polymer/lib/testing/testing.js
@@ -71,6 +71,17 @@
}
}
+ // We remove the contents of style tags so that we can compare both runs
+ // with and without the runtmie css shim. We keep the STYLE right under
+ // HEAD, because it is not affected by the shim.
+ if (node.tagName == 'STYLE') {
+ if (node.attributes['shadowcssshim'] != null) {
+ node.parentNode.removeChild(node);
+ } else if (node.parentNode.tagName != "HEAD") {
+ node.textContent = '/* style hidden by testing.js */'
+ }
+ }
+
if (node.tagName == 'SCRIPT') {
if (node.textContent.indexOf('_DART_TEMPORARY_ATTACHED') >= 0) {
node.parentNode.removeChild(node);
« no previous file with comments | « pkg/polymer/lib/testing/content_shell_test.dart ('k') | pkg/polymer/test/compiler_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698