aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorddh <dianehosfelt@gmail.com>2017-06-15 23:27:37 +0100
committerddh <dianehosfelt@gmail.com>2017-06-15 23:27:37 +0100
commitff8d2cdbbfc7a9dc7f38b7dd47cb350fde39388f (patch)
treec42601d017440871ce531af3c2007b83eea26a4d
parent234642065411b73009b0577cc129a14a71b9ce3a (diff)
downloadservo-ff8d2cdbbfc7a9dc7f38b7dd47cb350fde39388f.tar.gz
servo-ff8d2cdbbfc7a9dc7f38b7dd47cb350fde39388f.zip
enumerate should work. but is a dirty hack
-rw-r--r--tests/wpt/web-platform-tests/html/browsers/origin/cross-origin-objects/cross-origin-objects.html15
1 files changed, 3 insertions, 12 deletions
diff --git a/tests/wpt/web-platform-tests/html/browsers/origin/cross-origin-objects/cross-origin-objects.html b/tests/wpt/web-platform-tests/html/browsers/origin/cross-origin-objects/cross-origin-objects.html
index 7316b281a2a..1a188200224 100644
--- a/tests/wpt/web-platform-tests/html/browsers/origin/cross-origin-objects/cross-origin-objects.html
+++ b/tests/wpt/web-platform-tests/html/browsers/origin/cross-origin-objects/cross-origin-objects.html
@@ -286,21 +286,12 @@ addTest(function() {
*/
//FIXME fails
addTest(function() {
- console.log("absurd");
- // try {
for (var prop in C) {
- // //console.log("this is nonsense");
- // console.log(prop);
assert_unreached("Shouldn't have been able to enumerate " + prop + " on cross-origin Window");
}
- // } catch (err) {
- // console.log(err);
- // }
- // works
- // for (var prop in C.location) {
- // assert_unreached("Shouldn't have been able to enumerate " + prop + " on cross-origin Location");
- // }
- console.log("finish")
+ for (var prop in C.location) {
+ assert_unreached("Shouldn't have been able to enumerate " + prop + " on cross-origin Location");
+ }
}, "[[Enumerate]] should return an empty iterator");