зеркало из https://github.com/mozilla/gecko-dev.git
Add mochitests for bug 409298 and bug 403005 r=bzbarsky
This commit is contained in:
Родитель
ede07e2fcb
Коммит
16c69486d4
|
@ -59,11 +59,6 @@ ifndef MOZ_ENABLE_LIBXUL
|
|||
DIRS += components
|
||||
endif
|
||||
|
||||
ifdef MOZ_MOCHITEST
|
||||
DIRS += mochitest \
|
||||
$(NULL)
|
||||
endif
|
||||
|
||||
ifdef MOZ_MOCHITEST
|
||||
DIRS += mochitest \
|
||||
$(NULL)
|
||||
|
|
|
@ -45,7 +45,7 @@ include $(DEPTH)/config/autoconf.mk
|
|||
include $(topsrcdir)/config/rules.mk
|
||||
|
||||
_TEST_FILES = test_bug390488.html \
|
||||
test_xow.html \
|
||||
test_wrappers.html \
|
||||
$(NULL)
|
||||
|
||||
libs:: $(_TEST_FILES)
|
||||
|
|
|
@ -56,6 +56,13 @@
|
|||
} catch (e) {
|
||||
ok(false, "some crazy exception was thrown");
|
||||
}
|
||||
|
||||
// Some tests for SJOWs too.
|
||||
is(new XPCSafeJSObjectWrapper(document.body) === document.body, true,
|
||||
"triple equals ignores wrappers");
|
||||
is(XPCSafeJSObjectWrapper.prototype + '',
|
||||
"[object XPCSafeJSObjectWrapper]",
|
||||
"able to convert XPCSafeJSObjectWrapper.prototype to string");
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Загрузка…
Ссылка в новой задаче