forked from mozilla/amo-validator
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
73 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
from helper import CompatTestCase | ||
from validator.compat import FX35_DEFINITION | ||
|
||
|
||
class TestFX35Compat(CompatTestCase): | ||
"""Test that compatibility tests for Gecko 35 are properly executed.""" | ||
|
||
VERSION = FX35_DEFINITION | ||
|
||
def nsIBoxObject_changed(self, interface): | ||
self.run_script_for_compat(""" | ||
var obj = Components.interfaces.{interface}; | ||
""".format(interface=interface)) | ||
self.assert_silent() | ||
self.assert_compat_error() | ||
|
||
def test_nsIBoxObject_changed(self): | ||
self.nsIBoxObject_changed('nsIBoxObject') | ||
|
||
def test_nsIBrowserBoxObject_changed(self): | ||
self.nsIBoxObject_changed('nsIBrowserBoxObject') | ||
|
||
def test_nsIContainerBoxObject_changed(self): | ||
self.nsIBoxObject_changed('nsIContainerBoxObject') | ||
|
||
def test_nsIEditorBoxObject_changed(self): | ||
self.nsIBoxObject_changed('nsIEditorBoxObject') | ||
|
||
def test_nsIIFrameBoxObject_changed(self): | ||
self.nsIBoxObject_changed('nsIIFrameBoxObject') | ||
|
||
def test_nsIListBoxObject_changed(self): | ||
self.nsIBoxObject_changed('nsIListBoxObject') | ||
|
||
def test_nsIMenuBoxObject_changed(self): | ||
self.nsIBoxObject_changed('nsIMenuBoxObject') | ||
|
||
def test_nsIPopupBoxObject_changed(self): | ||
self.nsIBoxObject_changed('nsIPopupBoxObject') | ||
|
||
def test_nsIScrollBoxObject_changed(self): | ||
self.nsIBoxObject_changed('nsIScrollBoxObject') | ||
|
||
def test_nsITreeBoxObject_changed(self): | ||
self.nsIBoxObject_changed('nsITreeBoxObject') | ||
|
||
def test_nsIFoo_BoxObject_no_error(self): | ||
self.run_script_for_compat(""" | ||
var nsIFoo = myBoxObject; | ||
""") | ||
self.assert_silent() | ||
self.assert_compat_silent() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters