@@ -110,4 +110,59 @@ public function testFilterStrings($a, $b, $c)
110110 ->array ($ obj ->filterStrings ($ a , $ b ))
111111 ->isEqualTo ($ c );
112112 }
113+
114+ public function filterComponents_DP ()
115+ {
116+ return [
117+ [
118+ [
119+ 'browser/chrome/browser/preferences/applicationManager.dtd:appManager.style ' => 'width: 30em; min-height: 20em; ' ,
120+ 'extensions/irc/chrome/ceip.dtd:window.size ' => 'width: 42em; ' ,
121+ 'mail/chrome/messenger/importDialog.dtd:window.macWidth ' => '45em ' ,
122+ 'browser/defines.inc:MOZ_LANGPACK_CREATOR ' => 'L \'équipe FrenchMozilla ' ,
123+ 'dom/chrome/accessibility/win/accessible.properties:press ' => 'Appuyer ' ,
124+ 'shared/date/date.properties:days-until-long[many] ' => 'dans {{value}} jours ' ,
125+ 'dom/chrome/accessibility/AccessFu.properties:notation-phasorangle ' => 'angle de phaseur ' ,
126+ 'apps/system/accessibility.properties:accessibility-listItemsCount[two] ' => '{{count}} éléments ' ,
127+ ],
128+ ['browser ' , 'dom ' ],
129+ [
130+ 'extensions/irc/chrome/ceip.dtd:window.size ' => 'width: 42em; ' ,
131+ 'mail/chrome/messenger/importDialog.dtd:window.macWidth ' => '45em ' ,
132+ 'shared/date/date.properties:days-until-long[many] ' => 'dans {{value}} jours ' ,
133+ 'apps/system/accessibility.properties:accessibility-listItemsCount[two] ' => '{{count}} éléments ' ,
134+ ],
135+ ],
136+ [
137+ [
138+ 'browser/pdfviewer/viewer.properties:last_page.label ' => 'Aller à la dernière page ' ,
139+ 'extensions/irc/chrome/ceip.dtd:window.size ' => 'width: 42em; ' ,
140+ 'mail/chrome/messenger/importDialog.dtd:window.macWidth ' => '45em ' ,
141+ 'dom/chrome/accessibility/win/accessible.properties:press ' => 'Appuyer ' ,
142+ 'shared/date/date.properties:days-until-long[many] ' => 'dans {{value}} jours ' ,
143+ 'apps/system/accessibility.properties:accessibility-listItemsCount[two] ' => '{{count}} éléments ' ,
144+ ],
145+ [],
146+ [
147+ 'browser/pdfviewer/viewer.properties:last_page.label ' => 'Aller à la dernière page ' ,
148+ 'extensions/irc/chrome/ceip.dtd:window.size ' => 'width: 42em; ' ,
149+ 'mail/chrome/messenger/importDialog.dtd:window.macWidth ' => '45em ' ,
150+ 'dom/chrome/accessibility/win/accessible.properties:press ' => 'Appuyer ' ,
151+ 'shared/date/date.properties:days-until-long[many] ' => 'dans {{value}} jours ' ,
152+ 'apps/system/accessibility.properties:accessibility-listItemsCount[two] ' => '{{count}} éléments ' ,
153+ ],
154+ ],
155+ ];
156+ }
157+
158+ /**
159+ * @dataProvider filterComponents_DP
160+ */
161+ public function testFilterComponents ($ a , $ b , $ c )
162+ {
163+ $ obj = new _Consistency ();
164+ $ this
165+ ->array ($ obj ->filterComponents ($ a , $ b ))
166+ ->isEqualTo ($ c );
167+ }
113168}
0 commit comments