Skip to content

Commit 6796c44

Browse files
committed
Fix Build errors
1 parent eab6121 commit 6796c44

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

gulpfile.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ gulp.task("tslint", function() {
194194
var tsFiles = [
195195
PATHS.SRC.ROOT + "**/*.ts",
196196
PATHS.SRC.ROOT + "**/*.tsx",
197-
"!" + PATHS.SRC.ROOT + "**/*.d.ts"
197+
"!" + PATHS.SRC.ROOT + "**/*.d.ts",
198+
"!" + PATHS.SRC.ROOT + "scripts/definitions/custom/aria-web-telemetry-*.d_internal.ts"
198199
];
199200

200201
return gulp.src(tsFiles)

src/scripts/clipperUI/components/sectionPicker.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,6 @@ export class SectionPickerClass extends ComponentBase<SectionPickerState, Sectio
301301
};
302302
}
303303

304-
305304
// Attach escape key handler to return focus to the dropdown button when Escape is pressed
306305
// This is needed because the OneNotePicker component handles Escape internally without calling onPopupToggle
307306
attachEscapeFocusHandler(element: HTMLElement, isInitialized: boolean) {

src/tests/clipperUI/mainController_tests.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ export class MainControllerTests extends TestModule {
4444
onSignInInvoked={this.mockMainControllerProps.onSignInInvoked}
4545
onSignOutInvoked={this.mockMainControllerProps.onSignOutInvoked}
4646
updateFrameHeight={this.mockMainControllerProps.updateFrameHeight}
47-
onStartClip={this.mockMainControllerProps.onStartClip}/>;
47+
onStartClip={this.mockMainControllerProps.onStartClip}
48+
clearKeepAlive={this.mockMainControllerProps.clearKeepAlive}/>;
4849
}
4950

5051
protected tests() {
@@ -161,12 +162,12 @@ export class MainControllerTests extends TestModule {
161162

162163
// Focus on cancel button and tab - should move to close button
163164
cancelButton.focus();
164-
let tabEvent = new KeyboardEvent("keydown", { keyCode: Constants.KeyCodes.tab, bubbles: true });
165+
let tabEvent = new KeyboardEvent("keydown", { keyCode: Constants.KeyCodes.tab, bubbles: true } as any);
165166
document.dispatchEvent(tabEvent);
166167
strictEqual(document.activeElement, closeButton, "Tab from cancel button should focus close button");
167168

168169
// Tab again - should wrap to cancel button
169-
tabEvent = new KeyboardEvent("keydown", { keyCode: Constants.KeyCodes.tab, bubbles: true });
170+
tabEvent = new KeyboardEvent("keydown", { keyCode: Constants.KeyCodes.tab, bubbles: true } as any);
170171
document.dispatchEvent(tabEvent);
171172
strictEqual(document.activeElement, cancelButton, "Tab from close button should wrap to cancel button");
172173
});
@@ -183,12 +184,12 @@ export class MainControllerTests extends TestModule {
183184

184185
// Focus on launch button and tab - should move to close button
185186
launchButton.focus();
186-
let tabEvent = new KeyboardEvent("keydown", { keyCode: Constants.KeyCodes.tab, bubbles: true });
187+
let tabEvent = new KeyboardEvent("keydown", { keyCode: Constants.KeyCodes.tab, bubbles: true } as any);
187188
document.dispatchEvent(tabEvent);
188189
strictEqual(document.activeElement, closeButton, "Tab from launch button should focus close button");
189190

190191
// Tab again - should wrap to launch button
191-
tabEvent = new KeyboardEvent("keydown", { keyCode: Constants.KeyCodes.tab, bubbles: true });
192+
tabEvent = new KeyboardEvent("keydown", { keyCode: Constants.KeyCodes.tab, bubbles: true } as any);
192193
document.dispatchEvent(tabEvent);
193194
strictEqual(document.activeElement, launchButton, "Tab from close button should wrap to launch button");
194195
});

0 commit comments

Comments
 (0)