Removed the deprecated jsx pragma detection code (#6145)

* Removed the deprecated jsx pragma detection code and the concerned tests that included jsx-pragma

* Removed extra tests

* Restored packages/babel-plugin-transform-react-jsx/test/fixtures/react/honor-custom-jsx-pragma-option/
This commit is contained in:
Astha Sharma
2017-08-23 00:59:06 +05:30
committed by Henry Zhu
parent 63baaa7148
commit 62c22c7b5d
15 changed files with 39 additions and 168 deletions

View File

@@ -1,8 +0,0 @@
/** @jsx dom */
<Foo></Foo>;
var profile = <div>
<img src="avatar.png" className="profile" />
<h3>{[user.firstName, user.lastName].join(" ")}</h3>
</div>;

View File

@@ -1,6 +0,0 @@
/** @jsx dom */
dom(Foo, null);
var profile = dom("div", null, dom("img", {
src: "avatar.png",
className: "profile"
}), dom("h3", null, [user.firstName, user.lastName].join(" ")));

View File

@@ -1,5 +0,0 @@
{
"plugins": [
["transform-react-jsx", {"pragma": "foo.bar"}]
]
}

View File

@@ -1,8 +0,0 @@
/** @jsx dom */
<Foo></Foo>;
var profile = <div>
<img src="avatar.png" className="profile" />
<h3>{[user.firstName, user.lastName].join(" ")}</h3>
</div>;

View File

@@ -1,6 +0,0 @@
/** @jsx dom */
dom(Foo, null);
var profile = dom("div", null, dom("img", {
src: "avatar.png",
className: "profile"
}), dom("h3", null, [user.firstName, user.lastName].join(" ")));

View File

@@ -1,10 +0,0 @@
/**
* @jsx React.DOM
*/
<Foo></Foo>;
var profile = <div>
<img src="avatar.png" className="profile" />
<h3>{[user.firstName, user.lastName].join(" ")}</h3>
</div>;

View File

@@ -1,3 +0,0 @@
{
"throws": "The @jsx React.DOM pragma has been deprecated as of React 0.12"
}

View File

@@ -1,8 +0,0 @@
/* @jsx React.DOM */
<Foo></Foo>;
var profile = <div>
<img src="avatar.png" className="profile" />
<h3>{[user.firstName, user.lastName].join(" ")}</h3>
</div>;

View File

@@ -1,3 +0,0 @@
{
"throws": "The @jsx React.DOM pragma has been deprecated as of React 0.12"
}

View File

@@ -1,8 +0,0 @@
// @jsx React.DOM
<Foo></Foo>;
var profile = <div>
<img src="avatar.png" className="profile" />
<h3>{[user.firstName, user.lastName].join(" ")}</h3>
</div>;

View File

@@ -1,3 +0,0 @@
{
"throws": "The @jsx React.DOM pragma has been deprecated as of React 0.12"
}

View File

@@ -1,8 +0,0 @@
/** @jsx React.DOM */
<Foo></Foo>;
var profile = <div>
<img src="avatar.png" className="profile" />
<h3>{[user.firstName, user.lastName].join(" ")}</h3>
</div>;

View File

@@ -1,3 +0,0 @@
{
"throws": "The @jsx React.DOM pragma has been deprecated as of React 0.12"
}