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

Unified Diff: LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-cors-no-xorigin.html

Issue 1010433007: Fire error event when script integrity check fails. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated comment Created 5 years, 9 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: LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-cors-no-xorigin.html
diff --git a/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-cors-no-xorigin.html b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-cors-no-xorigin.html
index f965d50f8a7c49175ec4fa16e8a8a04ff594f3df..1e9c059115ff8656a2c8808f3f2a901bced61538 100644
--- a/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-cors-no-xorigin.html
+++ b/LayoutTests/http/tests/security/subresourceIntegrity/subresource-integrity-script-cors-no-xorigin.html
@@ -8,11 +8,11 @@
<script>
var result = '';
var scriptLoaded = function() {
- assert_equals(result, '', 'Script did not run.');
+ assert_unreached('Script ran.');
done();
};
var scriptError = function() {
- assert_unreached('Script error.');
+ assert_equals(result, '', 'Script did not run.');
done();
};
</script>

Powered by Google App Engine
This is Rietveld 408576698