Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
fix(tab-bar): Hacking on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickrodee committed Jul 27, 2018
1 parent da10d84 commit 9bf7b60
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/unit/mdc-tab-scroller/mdc-tab-scroller.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ test('#adapter.getScrollContentStyleValue returns the style property value on th

function setupScrollLeftTests() {
const {component, area, content, root} = setupTest();
document.body.style.setProperty('display', 'block', 'important');
root.style.setProperty('display', 'block', 'important');
root.style.setProperty('width', '100px');
root.style.setProperty('height', '100px');
area.style.setProperty('width', '100px');
area.style.setProperty('height', '100px');
area.style.setProperty('overflow-x', 'scroll');
Expand All @@ -118,6 +122,7 @@ test('#adapter.setScrollAreaScrollLeft sets the scrollLeft value of the area ele
const {component, root, area} = setupScrollLeftTests();
document.body.appendChild(root);
component.getDefaultFoundation().adapter_.setScrollAreaScrollLeft(101);
debugger;
assert.strictEqual(area.scrollLeft, 101);
document.body.removeChild(root);
});
Expand Down

0 comments on commit 9bf7b60

Please sign in to comment.