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
(cherry picked from commit 4e16b20)
  • Loading branch information
ochameau authored and KWierso committed Mar 13, 2012
1 parent 2c1fa12 commit 134428f
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 134428f

Please sign in to comment.