Skip to content

Commit

Permalink
Fix failing test test-httpd.testBasicHTTPServer on debug builds.
Browse files Browse the repository at this point in the history
  • Loading branch information
ochameau committed Mar 8, 2012
1 parent 03ac7ba commit 4e16b20
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/api-utils/tests/test-content-proxy.js
Expand Up @@ -777,7 +777,9 @@ exports.testCrossDomainIframe = createProxyTest("", function (helper) {
iframe.removeEventListener("load", onload, true);
try {
// Try accessing iframe's content that is made of COW wrappers
assert(iframe.contentWindow == "[object Window]", "COW works properly")
// Take care of debug builds that add object address after `Window`
assert(String(iframe.contentWindow).match(/\[object Window.*\]/),
"COW works properly");
} catch(e) {
assert(false, "COW fails : "+e.message);
}
Expand Down

0 comments on commit 4e16b20

Please sign in to comment.