82
77
testCase.verify(initialWidth > 0, "Initial width has a positive value.");
83
78
// Select the tab that has more actions.
84
79
tabs.selectedTabIndex = 1;
86
81
// Now less space is available for the header contents, so that the action buttons fit.
87
82
testCase.verify(searchField.width < initialWidth, "Contents width is reduced.");
88
83
// Without this wait(), the test does not reproduce bug 1408481.
90
85
// Select the first tab again:
91
86
tabs.selectedTabIndex = 0;
93
88
// Without actions in tab one, the full width is available again for contents
94
89
testCase.verify(searchField.width === initialWidth, "Contents width is reset.");