mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
auto merge of #4594 : evilpie/servo/window-proxy, r=jdm
After this patch somebody just needs to implement the new IndexedGetter (and probably frames/length) on window to fix #4589.
This commit is contained in:
commit
a227faa416
5 changed files with 145 additions and 14 deletions
23
tests/content/test_windowproxy.html
Normal file
23
tests/content/test_windowproxy.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
<html>
|
||||
<head id="foo">
|
||||
<script src="harness.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div></div>
|
||||
<script>
|
||||
window.abcd = 15;
|
||||
is(window.abcd, 15);
|
||||
is(Object.getOwnPropertyDescriptor(window, 'abcd').value, 15);
|
||||
is(window.hasOwnProperty('abcd'), true);
|
||||
|
||||
is('location' in window, true);
|
||||
// FIXME: https://github.com/servo/servo/issues/4593
|
||||
is(Object.hasOwnProperty('location'), false)
|
||||
|
||||
// Can't set indexed properties
|
||||
window[100] = "abc";
|
||||
is(window[100], undefined);
|
||||
is(Object.getOwnPropertyDescriptor(window, 1000), undefined);
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -2,7 +2,3 @@
|
|||
type: testharness
|
||||
[Indexed properties of the window object (non-strict mode) 1]
|
||||
expected: FAIL
|
||||
|
||||
[Indexed properties of the window object (non-strict mode) 2]
|
||||
expected: FAIL
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue