mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
Remove references to WindowProxy as an interface.
This commit is contained in:
parent
8c8051800f
commit
be00df4be6
2 changed files with 3 additions and 15 deletions
|
@ -1,9 +0,0 @@
|
||||||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
||||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
||||||
|
|
||||||
/* FIXME WindowProxy doesn't actually have an interface according to the spec,
|
|
||||||
but I'm not sure how to do fallible unwrapping without this, since
|
|
||||||
we lack Gecko's XPCOM querying facilities. */
|
|
||||||
interface WindowProxy {
|
|
||||||
};
|
|
|
@ -1,7 +1,7 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<title></title>
|
<title></title>
|
||||||
<script src="./content/harness.js"></script>
|
<script src="../content/harness.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<script>
|
<script>
|
||||||
|
@ -11,15 +11,12 @@ window.addEventListener("resize", function (aEvent) {
|
||||||
is(aEvent.bubbles, false, "Bubbles should be No.");
|
is(aEvent.bubbles, false, "Bubbles should be No.");
|
||||||
is(aEvent.cancelable, false, "Cancelable should be No.");
|
is(aEvent.cancelable, false, "Cancelable should be No.");
|
||||||
|
|
||||||
// FIXME:
|
|
||||||
// Target should be defaultView (WindowProxy) by D3E
|
|
||||||
// But we set Window instead of WindowProxy now. See: #1715
|
|
||||||
is(aEvent.target, window, "Target should be defaultView.");
|
is(aEvent.target, window, "Target should be defaultView.");
|
||||||
is_a(aEvent.target, Window, "UIEvent.target should be instance of Window.");
|
is_a(aEvent.target, Window, "UIEvent.target should be instance of Window.");
|
||||||
|
|
||||||
//is(aEvent.view, document.defaultView, "UIEvent.view should be defaultView.");
|
//is(aEvent.view, document.defaultView, "UIEvent.view should be defaultView.");
|
||||||
is_a(aEvent.view, WindowProxy, "UIEvent.view should be instance of WindowProxy.");
|
is_a(aEvent.view, Window, "UIEvent.view should be instance of Window.");
|
||||||
is(aEvent.detail, 0, "UIEvent.view should be 0.");
|
is(aEvent.detail, 0, "UIEvent.detail should be 0.");
|
||||||
}, false);
|
}, false);
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue