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

Unified Diff: third_party/WebKit/LayoutTests/http/tests/security/cross-origin-access-over-property-descriptor-expected.txt

Issue 1380503002: binding: Makes Window/Location's attributes accessor-type properties. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated a test result. Created 4 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
Index: third_party/WebKit/LayoutTests/http/tests/security/cross-origin-access-over-property-descriptor-expected.txt
diff --git a/third_party/WebKit/LayoutTests/http/tests/security/cross-origin-access-over-property-descriptor-expected.txt b/third_party/WebKit/LayoutTests/http/tests/security/cross-origin-access-over-property-descriptor-expected.txt
index 65ea5bfc2d217405a3c7a561da272b7acc6eb677..1f436d640af0da19c6dd492d6a2cfa7b3e0f049a 100644
--- a/third_party/WebKit/LayoutTests/http/tests/security/cross-origin-access-over-property-descriptor-expected.txt
+++ b/third_party/WebKit/LayoutTests/http/tests/security/cross-origin-access-over-property-descriptor-expected.txt
@@ -1,13 +1,20 @@
-Cross-origin access to 'window.location.pathname' over 'get' and 'set' in property descriptor should throw a SecurityError.
+Cross-origin access through 'get' and 'set' in a property descriptor should throw a SecurityError.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-FAIL pathnameDescriptor should be non-null. Was undefined
-FAIL typeof pathnameDescriptor.get should be function. Threw exception TypeError: Cannot read property 'get' of undefined
-FAIL typeof pathnameDescriptor.set should be function. Threw exception TypeError: Cannot read property 'set' of undefined
-FAIL pathnameDescriptor.get.call(targetWindow.location) should throw SecurityError: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cross-origin frame.. Threw exception TypeError: Cannot read property 'get' of undefined.
-FAIL pathnameDescriptor.set.call(targetWindow.location, 1) should throw SecurityError: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cross-origin frame.. Threw exception TypeError: Cannot read property 'set' of undefined.
+PASS [object HTMLIFrameElement] is non-null.
+PASS [object Window] is non-null.
+PASS pathnameDescriptor is non-null.
+PASS typeof pathnameDescriptor.get is "function"
+PASS typeof pathnameDescriptor.set is "function"
+PASS devicePixelRatio is non-null.
+PASS typeof devicePixelRatioDescriptor.get is "function"
+PASS typeof devicePixelRatioDescriptor.set is "function"
+PASS pathnameDescriptor.get.call(targetWindow.location) threw exception SecurityError: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cross-origin frame..
+PASS pathnameDescriptor.set.call(targetWindow.location, 1) threw exception SecurityError: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cross-origin frame..
+PASS devicePixelRatioDescriptor.get.call(targetWindow) threw exception SecurityError: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cross-origin frame..
+PASS devicePixelRatioDescriptor.set.call(targetWindow, 1) threw exception SecurityError: Blocked a frame with origin "http://127.0.0.1:8000" from accessing a cross-origin frame..
PASS successfullyParsed is true
TEST COMPLETE

Powered by Google App Engine
This is Rietveld 408576698