Skip to content

Commit

Permalink
Minor fixes to DOM Test Fixtures (facebook#11542)
Browse files Browse the repository at this point in the history
- Fix broken React logo reference
- Always use React from the window.
  • Loading branch information
nhunzaker authored and Ethan-Arrowood committed Dec 8, 2017
1 parent c02d0ad commit 88e036e
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 12 deletions.
1 change: 1 addition & 0 deletions fixtures/dom/public/react-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion fixtures/dom/src/components/FixtureSet.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import PropTypes from 'prop-types';
const React = window.React;

const propTypes = {
title: PropTypes.node.isRequired,
Expand Down
2 changes: 1 addition & 1 deletion fixtures/dom/src/components/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ class Header extends React.Component {
<div className="header__inner">
<span className="header__logo">
<img
src="https://reactjs.org/img/logo.svg"
src={process.env.PUBLIC_URL + '/react-logo.svg'}
alt=""
width="32"
height="32"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';

import Fixture from '../../Fixture';
const React = window.React;

class InputPlaceholderFixture extends React.Component {
constructor(props, context) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';

import Fixture from '../../Fixture';
const React = window.React;

class RadioClickFixture extends React.Component {
constructor(props, context) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';

import Fixture from '../../Fixture';
const React = window.React;

class RadioGroupFixture extends React.Component {
constructor(props, context) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import React from 'react';

import Fixture from '../../Fixture';
const React = window.React;

class RangeKeyboardFixture extends React.Component {
constructor(props, context) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import React from 'react';

import FixtureSet from '../../FixtureSet';
import TestCase from '../../TestCase';
import RangeKeyboardFixture from './RangeKeyboardFixture';
import RadioClickFixture from './RadioClickFixture';
import RadioGroupFixture from './RadioGroupFixture';
import InputPlaceholderFixture from './InputPlaceholderFixture';
const React = window.React;

class InputChangeEvents extends React.Component {
render() {
Expand Down

0 comments on commit 88e036e

Please sign in to comment.