Commit 2609876c authored by Marcin Urbański's avatar Marcin Urbański Committed by Hans Muller

Fix misspelling in tab description (#15449)

Actual text: "Tab 2 of $3"
Expected text: "Tab 2 of 3"
parent b0f7da92
......@@ -284,7 +284,7 @@ class GlobalMaterialLocalizations implements MaterialLocalizations {
final String template = _translationBundle.tabLabel;
return template
.replaceFirst(r'$tabIndex', formatDecimal(tabIndex))
.replaceFirst(r'tabCount', formatDecimal(tabCount));
.replaceFirst(r'$tabCount', formatDecimal(tabCount));
}
@override
......
......@@ -82,8 +82,8 @@ void main() {
expect(localizations.pageRowsInfoTitle(1, 10, 100, false), isNot(contains(r'$rowCount')));
expect(localizations.tabLabel(tabIndex: 2, tabCount: 5), isNotNull);
expect(localizations.tabLabel(tabIndex: 2, tabCount: 5), isNot(contains('tabIndex')));
expect(localizations.tabLabel(tabIndex: 2, tabCount: 5), isNot(contains('tabCount')));
expect(localizations.tabLabel(tabIndex: 2, tabCount: 5), isNot(contains(r'$tabIndex')));
expect(localizations.tabLabel(tabIndex: 2, tabCount: 5), isNot(contains(r'$tabCount')));
expect(() => localizations.tabLabel(tabIndex: 0, tabCount: 5), throwsAssertionError);
expect(() => localizations.tabLabel(tabIndex: 2, tabCount: 0), throwsAssertionError);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment