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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/link-crossorigin-stylesheet-no-cors.html

Issue 2277693002: Unflake link-crossorigin-stylesheet-no-cors.html (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed #7 Created 4 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
Index: third_party/WebKit/LayoutTests/http/tests/security/link-crossorigin-stylesheet-no-cors.html
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/link-crossorigin-stylesheet-no-cors.html b/third_party/WebKit/LayoutTests/http/tests/security/link-crossorigin-stylesheet-no-cors.html
index 218ecb8a41c75663c56b4b835235628dfd82301e..08b26154a2af93ba04a6dfde3d6055e2e6ac946c 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/link-crossorigin-stylesheet-no-cors.html
+++ b/third_party/WebKit/LayoutTests/http/tests/security/link-crossorigin-stylesheet-no-cors.html
@@ -2,7 +2,16 @@
<html>
<head>
<script src="/js-test-resources/js-test.js"></script>
-<script>window.testCount = 8;</script>
+<script>
+window.testCount = 8;
+
+// Don't log console messages as the order of CORS error messages is not
+// stable. It's ok to ignore them since we're checking whether the elements
+// got loaded or errored.
+if (window.testRunner) {
+ testRunner.setDumpConsoleMessages(false);
+}
+</script>
<script src="resources/link-crossorigin-common.js"></script>
</head>
<body>

Powered by Google App Engine
This is Rietveld 408576698