Skip to content
This repository has been archived by the owner on Jul 30, 2018. It is now read-only.

Update for latest widget core #64

Merged
merged 1 commit into from
Sep 25, 2017

Conversation

agubler
Copy link
Member

@agubler agubler commented Sep 20, 2017

Type: feature

The following has been addressed in the PR:

  • There is a related issue
  • All code matches the style guide
  • Unit or Functional tests are included in the PR

Description:

Updates for latest widget core changes.

Depends on widget-core release

@@ -63,5 +63,6 @@ export default function callListener(node: HNode | WNode, method: string, option
if (!listener) {
throw new TypeError(`Cannot resolve listener: "${method}"`);
}
listener.apply(thisArg || resolvedTarget.properties.bind, args);
const bind = resolvedTarget.coreProperties ? resolvedTarget.coreProperties.bind : resolvedTarget.properties.bind;
Copy link
Member Author

@agubler agubler Sep 20, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bind is now on coreProperties for a WNode and properties for a HNode

@@ -269,7 +278,8 @@ export class Harness<P extends WidgetProperties, W extends Constructor<WidgetBas
this._projectionRoot = projectionRoot;
this._projectionOptions = {
transitions: cssTransitions,
eventHandlerInterceptor: this._eventHandlerInterceptor.bind(this._widgetHarness)
eventHandlerInterceptor: this._eventHandlerInterceptor.bind(this._widgetHarness),
nodeEvent: new Evented()
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A new projector options added for meta

@@ -37,7 +37,7 @@ function throwAssertionError(actual: any, expected: any, message?: string): neve
*/
const defaultDiffOptions: DiffOptions = {
allowFunctionValues: true,
ignoreProperties: [ 'bind', 'defaultRegistry' ]
ignoreProperties: [ 'bind', 'afterCreate', 'afterUpdate' ]
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need to look at why these are being added when they weren't expected before the update.

@codecov
Copy link

codecov bot commented Sep 21, 2017

Codecov Report

Merging #64 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #64      +/-   ##
==========================================
+ Coverage   98.26%   98.27%   +<.01%     
==========================================
  Files          10       10              
  Lines         692      696       +4     
  Branches      162      163       +1     
==========================================
+ Hits          680      684       +4     
  Misses          4        4              
  Partials        8        8
Impacted Files Coverage Δ
src/support/assertRender.ts 97.5% <ø> (ø) ⬆️
src/support/callListener.ts 100% <100%> (ø) ⬆️
src/harness.ts 97.17% <100%> (+0.04%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 529baa3...a77f412. Read the comment docs.

@agubler agubler force-pushed the update-for-widget-core-changes branch from bb86a5d to a77f412 Compare September 22, 2017 15:49
@agubler agubler merged commit c5b907d into dojo:master Sep 25, 2017
@dylans dylans added this to the 2017.09 milestone Sep 25, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants