mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
Fix master tests (#19267)
This commit is contained in:
+6
-6
@@ -473,7 +473,7 @@ describe('ChangeEventPlugin', () => {
|
||||
describe('concurrent mode', () => {
|
||||
// @gate experimental
|
||||
it('text input', () => {
|
||||
const root = ReactDOM.createRoot(container);
|
||||
const root = ReactDOM.unstable_createRoot(container);
|
||||
let input;
|
||||
|
||||
class ControlledInput extends React.Component {
|
||||
@@ -516,7 +516,7 @@ describe('ChangeEventPlugin', () => {
|
||||
|
||||
// @gate experimental
|
||||
it('checkbox input', () => {
|
||||
const root = ReactDOM.createRoot(container);
|
||||
const root = ReactDOM.unstable_createRoot(container);
|
||||
let input;
|
||||
|
||||
class ControlledInput extends React.Component {
|
||||
@@ -572,7 +572,7 @@ describe('ChangeEventPlugin', () => {
|
||||
|
||||
// @gate experimental
|
||||
it('textarea', () => {
|
||||
const root = ReactDOM.createRoot(container);
|
||||
const root = ReactDOM.unstable_createRoot(container);
|
||||
let textarea;
|
||||
|
||||
class ControlledTextarea extends React.Component {
|
||||
@@ -615,7 +615,7 @@ describe('ChangeEventPlugin', () => {
|
||||
|
||||
// @gate experimental
|
||||
it('parent of input', () => {
|
||||
const root = ReactDOM.createRoot(container);
|
||||
const root = ReactDOM.unstable_createRoot(container);
|
||||
let input;
|
||||
|
||||
class ControlledInput extends React.Component {
|
||||
@@ -662,7 +662,7 @@ describe('ChangeEventPlugin', () => {
|
||||
|
||||
// @gate experimental
|
||||
it('is async for non-input events', () => {
|
||||
const root = ReactDOM.createRoot(container);
|
||||
const root = ReactDOM.unstable_createRoot(container);
|
||||
let input;
|
||||
|
||||
class ControlledInput extends React.Component {
|
||||
@@ -715,7 +715,7 @@ describe('ChangeEventPlugin', () => {
|
||||
const {act} = TestUtils;
|
||||
const {useState} = React;
|
||||
|
||||
const root = ReactDOM.createRoot(container);
|
||||
const root = ReactDOM.unstable_createRoot(container);
|
||||
|
||||
const target = React.createRef(null);
|
||||
function Foo() {
|
||||
|
||||
+3
-3
@@ -238,7 +238,7 @@ describe('SimpleEventPlugin', function() {
|
||||
// @gate experimental
|
||||
it('flushes pending interactive work before extracting event handler', () => {
|
||||
container = document.createElement('div');
|
||||
const root = ReactDOM.createRoot(container);
|
||||
const root = ReactDOM.unstable_createRoot(container);
|
||||
document.body.appendChild(container);
|
||||
|
||||
let button;
|
||||
@@ -309,7 +309,7 @@ describe('SimpleEventPlugin', function() {
|
||||
// @gate experimental
|
||||
it('end result of many interactive updates is deterministic', () => {
|
||||
container = document.createElement('div');
|
||||
const root = ReactDOM.createRoot(container);
|
||||
const root = ReactDOM.unstable_createRoot(container);
|
||||
document.body.appendChild(container);
|
||||
|
||||
let button;
|
||||
@@ -408,7 +408,7 @@ describe('SimpleEventPlugin', function() {
|
||||
}
|
||||
|
||||
// Initial mount
|
||||
const root = ReactDOM.createRoot(container);
|
||||
const root = ReactDOM.unstable_createRoot(container);
|
||||
root.render(<Wrapper />);
|
||||
expect(Scheduler).toFlushAndYield([
|
||||
'High-pri count: 0, Low-pri count: 0',
|
||||
|
||||
Reference in New Issue
Block a user