diff --git a/packages/mdc-select/foundation.js b/packages/mdc-select/foundation.js index 5ef1778ceaa..3ecdc1449cc 100644 --- a/packages/mdc-select/foundation.js +++ b/packages/mdc-select/foundation.js @@ -15,7 +15,7 @@ */ import {MDCFoundation} from '@material/base'; -import {cssClasses} from './constants'; +import {cssClasses, strings} from './constants'; import {MDCSimpleMenuFoundation} from '@material/menu'; const OPENER_KEYS = [ @@ -29,6 +29,10 @@ export default class MDCSelectFoundation extends MDCFoundation { return cssClasses; } + static get strings() { + return strings; + } + static get defaultAdapter() { return { addClass: (/* className: string */) => {}, diff --git a/test/unit/mdc-select/foundation.test.js b/test/unit/mdc-select/foundation.test.js index 6c12d13ba0f..5a5abe4576e 100644 --- a/test/unit/mdc-select/foundation.test.js +++ b/test/unit/mdc-select/foundation.test.js @@ -28,6 +28,10 @@ test('exports cssClasses', () => { assert.isOk('cssClasses' in MDCSelectFoundation); }); +test('exports strings', () => { + assert.isOk('strings' in MDCSelectFoundation); +}); + test('default adapter returns a complete adapter implementation', () => { verifyDefaultAdapter(MDCSelectFoundation, [ 'addClass', 'removeClass', 'setAttr', 'rmAttr', 'computeBoundingRect', diff --git a/test/unit/mdc-select/mdc-select.test.js b/test/unit/mdc-select/mdc-select.test.js index 49d7df69d3d..5cfe9f634bb 100644 --- a/test/unit/mdc-select/mdc-select.test.js +++ b/test/unit/mdc-select/mdc-select.test.js @@ -361,6 +361,7 @@ test(`adapter#notifyChange emits an ${strings.CHANGE_EVENT} custom event from th const handler = td.func('change handler'); fixture.addEventListener(strings.CHANGE_EVENT, handler); component.getDefaultFoundation().adapter_.notifyChange(); + td.verify(handler(td.matchers.anything())); }); test('adapter#getWindowInnerHeight returns window.innerHeight', () => { diff --git a/test/unit/mdc-tabs/mdc-tab-bar-foundation.test.js b/test/unit/mdc-tabs/mdc-tab-bar-foundation.test.js index 322b56423a6..d0f8abc631a 100644 --- a/test/unit/mdc-tabs/mdc-tab-bar-foundation.test.js +++ b/test/unit/mdc-tabs/mdc-tab-bar-foundation.test.js @@ -28,6 +28,10 @@ test('exports cssClasses', () => { assert.isOk('cssClasses' in MDCTabBarFoundation); }); +test('exports strings', () => { + assert.isOk('strings' in MDCTabBarFoundation); +}); + test('default adapter returns a complete adapter implementation', () => { verifyDefaultAdapter(MDCTabBarFoundation, [ 'addClass', 'removeClass', 'bindOnMDCTabSelectedEvent', diff --git a/test/unit/mdc-tabs/mdc-tab-foundation.test.js b/test/unit/mdc-tabs/mdc-tab-foundation.test.js index 48248dec0d0..02435d38b81 100644 --- a/test/unit/mdc-tabs/mdc-tab-foundation.test.js +++ b/test/unit/mdc-tabs/mdc-tab-foundation.test.js @@ -28,6 +28,10 @@ test('exports cssClasses', () => { assert.deepEqual(MDCTabFoundation.cssClasses, cssClasses); }); +test('exports strings', () => { + assert.isOk('strings' in MDCTabFoundation); +}); + test('default adapter returns a complete adapter implementation', () => { verifyDefaultAdapter(MDCTabFoundation, [ 'addClass', 'removeClass', 'registerInteractionHandler',