From adb4f74c5719cf0672f6aba7c86661bc94674027 Mon Sep 17 00:00:00 2001 From: Ville Saukkonen Date: Mon, 18 Mar 2019 15:25:22 +0200 Subject: [PATCH] update tests --- tests/react_16_3/react_16_3.exp | 12 +- tests/react_dom/react_dom.exp | 327 ++++++++++++++++++-------------- 2 files changed, 193 insertions(+), 146 deletions(-) diff --git a/tests/react_16_3/react_16_3.exp b/tests/react_16_3/react_16_3.exp index 521a740ca59..080eba9d555 100644 --- a/tests/react_16_3/react_16_3.exp +++ b/tests/react_16_3/react_16_3.exp @@ -40,9 +40,9 @@ References: forwardRef.js:19:32 19| const badRef = React.createRef(); ^^^^^^^^^^^^^^ [1] - /react-dom.js:289:22 - 289| button: {instance: HTMLButtonElement, props: {children?: React$Node, [key: string]: any}}, - ^^^^^^^^^^^^^^^^^ [2] + /react-dom.js:289:44 + 289| button: ReactDOM$HTMLElementJSXIntrinsic, + ^^^^^^^^^^^^^^^^^ [2] /react.js:240:6 240| ): {|current: null | T|}; ^^^^^^^^^^^^^^^^^^^^^ [3] @@ -71,9 +71,9 @@ References: forwardRef.js:23:50 23| const _g = x} />; // Incorrect ref type ^^^^^^^^^^^^^^ [3] - /react-dom.js:289:22 - 289| button: {instance: HTMLButtonElement, props: {children?: React$Node, [key: string]: any}}, - ^^^^^^^^^^^^^^^^^ [4] + /react-dom.js:289:44 + 289| button: ReactDOM$HTMLElementJSXIntrinsic, + ^^^^^^^^^^^^^^^^^ [4] Error ---------------------------------------------------------------------------------------------- forwardRef.js:42:12 diff --git a/tests/react_dom/react_dom.exp b/tests/react_dom/react_dom.exp index b4c6bece1e1..b6bcbb7712a 100644 --- a/tests/react_dom/react_dom.exp +++ b/tests/react_dom/react_dom.exp @@ -11,8 +11,8 @@ References: dangerouslySetInnerHTML.js:5:10 5|
; // Error: Expected object ^^^^^^^^^^^^^^^^^^^^^^^ [1] - /react-dom.js:398:29 - 398| dangerouslySetInnerHTML?: { __html: string }, + /react-dom.js:586:29 + 586| dangerouslySetInnerHTML?: { __html: string }, ^^^^^^^^^^^^^^^^^^ [2] @@ -29,8 +29,8 @@ References: dangerouslySetInnerHTML.js:6:34 6|
; // Error: Expected object ^^^^^^^^^^^^^^^^^^^^^^ [1] - /react-dom.js:398:29 - 398| dangerouslySetInnerHTML?: { __html: string }, + /react-dom.js:586:29 + 586| dangerouslySetInnerHTML?: { __html: string }, ^^^^^^^^^^^^^^^^^^ [2] @@ -47,17 +47,68 @@ References: dangerouslySetInnerHTML.js:8:35 8|
Hello" }} />; // Error: Missing __html ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [1] - /react-dom.js:398:29 - 398| dangerouslySetInnerHTML?: { __html: string }, + /react-dom.js:586:29 + 586| dangerouslySetInnerHTML?: { __html: string }, ^^^^^^^^^^^^^^^^^^ [2] +Error ---------------------------------------------------------------------------------------------------- events.js:6:1 + +Cannot create `input` element because string [1] is incompatible with function type [2] in property `onChange`. + + events.js:6:1 + 6| ; // Error: Expected function + ^^^^^^^^^^^^^^^^^^^^^^^^ + +References: + events.js:6:17 + 6| ; // Error: Expected function + ^^^^^ [1] + /react-dom.js:435:14 + 435| onChange?: (SyntheticEvent) => void, + ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [2] + + +Error ---------------------------------------------------------------------------------------------------- events.js:8:1 + +Cannot create `textarea` element because `SyntheticKeyboardEvent` [1] is incompatible with `SyntheticMouseEvent` [2] in +the first argument of property `onKeyDown`. + + events.js:8:1 + 8|