summaryrefslogtreecommitdiff
path: root/js/xpconnect/tests/mochitest/file_bug795275.html
diff options
context:
space:
mode:
Diffstat (limited to 'js/xpconnect/tests/mochitest/file_bug795275.html')
-rw-r--r--js/xpconnect/tests/mochitest/file_bug795275.html28
1 files changed, 28 insertions, 0 deletions
diff --git a/js/xpconnect/tests/mochitest/file_bug795275.html b/js/xpconnect/tests/mochitest/file_bug795275.html
new file mode 100644
index 0000000000..95e9f2a8ea
--- /dev/null
+++ b/js/xpconnect/tests/mochitest/file_bug795275.html
@@ -0,0 +1,28 @@
+<html>
+<head>
+<style>
+ .bound {
+ -moz-binding: url(file_bug795275.xml#xbltest);
+ }
+</style>
+<script type="application/javascript">
+ function touchComponents() {
+ Components;
+ }
+ function touchInterfaces() {
+ Components.interfaces;
+ }
+
+ function touchViaXBL() {
+ // Make sure none of this warns.
+ var div = document.getElementById('dummy');
+ div.testProp;
+ div.testMethod();
+ }
+
+</script>
+</head>
+<body>
+<div id="dummy" class="bound"></div>
+</body>
+</html>