Add mochitests for bug 409298 and bug 403005 r=bzbarsky

This commit is contained in:
mrbkap@gmail.com 2007-12-24 11:28:21 -08:00
Родитель ede07e2fcb
Коммит 16c69486d4
3 изменённых файлов: 8 добавлений и 6 удалений

Просмотреть файл

@ -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>