diff options
Diffstat (limited to 'devtools/client/shared/source-map-loader/test/browser/fixtures/if.js')
-rw-r--r-- | devtools/client/shared/source-map-loader/test/browser/fixtures/if.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/devtools/client/shared/source-map-loader/test/browser/fixtures/if.js b/devtools/client/shared/source-map-loader/test/browser/fixtures/if.js new file mode 100644 index 0000000000..4ee69b19ef --- /dev/null +++ b/devtools/client/shared/source-map-loader/test/browser/fixtures/if.js @@ -0,0 +1,12 @@ +function componentWillReceiveProps(nextProps) { + console.log("start"); + const { selectedSource } = nextProps; + + if ( + nextProps.startPanelSize !== this.props.startPanelSize || + nextProps.endPanelSize !== this.props.endPanelSize + ) { + this.state.editor.codeMirror.setSize(); + } + console.log("done"); +} |