Add test for bug 481558.
git-svn-id: svn://10.0.0.236/trunk@256711 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
ac97292a1f
commit
56c45f2a47
@ -66,6 +66,9 @@ _TEST_FILES = \
|
||||
file_bug379959_cross.html \
|
||||
file_bug379959_xbl.xml \
|
||||
test_bug468210.xhtml \
|
||||
test_bug481558.html \
|
||||
file_bug481558.css \
|
||||
file_bug481558.xbl \
|
||||
$(NULL)
|
||||
|
||||
libs:: $(_TEST_FILES)
|
||||
|
||||
3
mozilla/content/xbl/test/file_bug481558.css
Normal file
3
mozilla/content/xbl/test/file_bug481558.css
Normal file
@ -0,0 +1,3 @@
|
||||
#display {
|
||||
-moz-binding: url("file_bug481558.xbl#test");
|
||||
}
|
||||
15
mozilla/content/xbl/test/file_bug481558.xbl
Normal file
15
mozilla/content/xbl/test/file_bug481558.xbl
Normal file
@ -0,0 +1,15 @@
|
||||
<bindings xmlns="http://www.mozilla.org/xbl"
|
||||
xmlns:xbl="http://www.mozilla.org/xbl"
|
||||
xmlns:html="http://www.w3.org/1999/xhtml">
|
||||
<binding id="test">
|
||||
<content>
|
||||
<children/>
|
||||
Binding Attached
|
||||
</content>
|
||||
<implementation>
|
||||
<property name="xblBoundProperty" onget="return 1;"/>
|
||||
</implementation>
|
||||
</binding>
|
||||
|
||||
|
||||
</bindings>
|
||||
28
mozilla/content/xbl/test/test_bug481558.html
Normal file
28
mozilla/content/xbl/test/test_bug481558.html
Normal file
@ -0,0 +1,28 @@
|
||||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<!--
|
||||
https://bugzilla.mozilla.org/show_bug.cgi?id=481558
|
||||
-->
|
||||
<head>
|
||||
<title>Test for Bug 481558</title>
|
||||
<script type="text/javascript" src="/MochiKit/MochiKit.js"></script>
|
||||
<script type="text/javascript" src="/tests/SimpleTest/SimpleTest.js"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/tests/SimpleTest/test.css">
|
||||
<link rel="stylesheet" type="text/css" href="http://example.com/tests/content/xbl/test/file_bug481558.css">
|
||||
</head>
|
||||
<body onload="runTest();">
|
||||
<a target="_blank" href="https://bugzilla.mozilla.org/show_bug.cgi?id=481558">Mozilla Bug 481558</a>
|
||||
<p id="display"></p>
|
||||
<pre id="test">
|
||||
<script class="testbody" type="text/javascript">
|
||||
|
||||
SimpleTest.waitForExplicitFinish();
|
||||
function runTest() {
|
||||
is ($('display').xblBoundProperty, undefined, "XBL shouldn't be attached");
|
||||
SimpleTest.finish();
|
||||
}
|
||||
|
||||
</script>
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
x
Reference in New Issue
Block a user