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

Unified Diff: LayoutTests/http/tests/security/w3c/cross-origin-objects-expected.txt

Issue 1182073002: cross-origin: Adds W3C cross-origin security tests. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated a comment. Created 5 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
Index: LayoutTests/http/tests/security/w3c/cross-origin-objects-expected.txt
diff --git a/LayoutTests/http/tests/security/w3c/cross-origin-objects-expected.txt b/LayoutTests/http/tests/security/w3c/cross-origin-objects-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..3a6c61a80b5b4a466fed283c62851af91843dc7f
--- /dev/null
+++ b/LayoutTests/http/tests/security/w3c/cross-origin-objects-expected.txt
@@ -0,0 +1,22 @@
+This is a testharness.js-based test.
+PASS Basic sanity-checking
+FAIL Only whitelisted properties are accessible cross-origin Blocked a frame with origin "http://web-platform.test:8000" from accessing a cross-origin frame.
+FAIL [[GetPrototypeOf]] should return null Blocked a frame with origin "http://web-platform.test:8000" from accessing a cross-origin frame.
+PASS [[SetPrototypeOf]] should throw
+PASS [[IsExtensible]] should return true for cross-origin objects
+PASS [[PreventExtensions]] should throw for cross-origin objects
+FAIL [[GetOwnProperty]] - Properties on cross-origin objects should be reported |own| Blocked a frame with origin "http://web-platform.test:8000" from accessing a cross-origin frame.
+FAIL [[GetOwnProperty]] - Property descriptors for cross-origin properties should be set up correctly assert_equals: property descriptor for location should be non-enumerable expected false but got true
+PASS [[Delete]] Should throw on cross-origin objects
+FAIL [[DefineOwnProperty]] Should throw for cross-origin objects assert_throws: Can't define cross-origin value property length function "function () { Object.defineProperty(obj, prop, valueDesc); }" did not throw
+FAIL [[Enumerate]] should return an empty iterator Blocked a frame with origin "http://web-platform.test:8000" from accessing a cross-origin frame.
+FAIL [[OwnPropertyKeys]] should return all properties from cross-origin objects Blocked a frame with origin "http://web-platform.test:8000" from accessing a cross-origin frame.
+PASS A and B jointly observe the same identity for cross-origin Window and Location
+PASS Cross-origin functions get local Function.prototype
+FAIL Cross-origin Window accessors get local Function.prototype Cannot read property 'name' of undefined
+FAIL Same-origin observers get different functions for cross-origin objects assert_true: same-origin Window functions get their own object expected true got false
+FAIL Same-origin obsevers get different accessors for cross-origin Window assert_true: different Window accessors per-incumbent script settings object expected true got false
+FAIL Same-origin observers get different accessors for cross-origin Location Blocked a frame with origin "http://web-platform.test:8000" from accessing a cross-origin frame.
+PASS Cross-origin object identity preserved across document.domain
+Harness: the test ran to completion.
+

Powered by Google App Engine
This is Rietveld 408576698