Regenerate fixtures (#7120)

* Update line endings in test fixtures to match current output

* Fix incorrectly set up static-property-tdz fixtures

It seems the fixture runner does not look into subfolders.

* Remove expected file that should not exist

* Reenable disable optimisation test

* Reenable disabled nbsp tests

* Reenable comments between props test

The comments adjacent to children test is still broken so it stays off.
This commit is contained in:
Diogo Franco 2017-12-28 19:28:05 +09:00 committed by GitHub
parent 0f60d42fdf
commit f9e0805337
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
76 changed files with 103 additions and 151 deletions

View File

@ -0,0 +1,5 @@
{
"plugins": ["proposal-class-properties", "transform-classes"],
"minNodeVersion": "6.0.0",
"throws": "Class \"A\" cannot be referenced in computed property keys."
}

View File

@ -0,0 +1,5 @@
{
"plugins": ["proposal-class-properties", "transform-classes"],
"minNodeVersion": "6.0.0",
"throws": "Class \"C\" cannot be referenced in computed property keys."
}

View File

@ -0,0 +1,5 @@
{
"plugins": [["proposal-class-properties", {"loose": true}]],
"minNodeVersion": "6.0.0",
"throws": "Class \"C\" cannot be referenced in computed property keys."
}

View File

@ -1,17 +0,0 @@
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _classNameTDZError(name) { throw new Error("Class \"" + name + "\" cannot be referenced in computed property keys."); }
let A = function A() {
_classCallCheck(this, A);
};
var _x$x = {
x: (_classNameTDZError("A"), A) || 0
}.x;
Object.defineProperty(A, _x$x, {
configurable: true,
enumerable: true,
writable: true,
value: void 0
});

View File

@ -1,16 +0,0 @@
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _classNameTDZError(name) { throw new Error("Class \"" + name + "\" cannot be referenced in computed property keys."); }
let C = function C() {
_classCallCheck(this, C);
};
var _ref = (_classNameTDZError("C"), C) + 3;
Object.defineProperty(C, _ref, {
configurable: true,
enumerable: true,
writable: true,
value: 3
});

View File

@ -1,3 +0,0 @@
{
"throws": "Class \"C\" cannot be referenced in computed property keys."
}

View File

@ -1,7 +0,0 @@
function _classNameTDZError(name) { throw new Error("Class \"" + name + "\" cannot be referenced in computed property keys."); }
class C {}
var _ref = (_classNameTDZError("C"), C) + 3;
C[_ref] = 3;

View File

@ -1,4 +0,0 @@
{
"throws": "Class \"C\" cannot be referenced in computed property keys.",
"plugins": [["proposal-class-properties", {"loose": true}]]
}

View File

@ -1,4 +0,0 @@
{
"plugins": ["proposal-class-properties", "transform-classes"],
"minNodeVersion": "6.0.0"
}

View File

@ -1,40 +0,0 @@
var _ref = React.createElement(
"div",
{ className: "navbar-header" },
React.createElement(
"a",
{ className: "navbar-brand", href: "/" },
React.createElement("img", { src: "/img/logo/logo-96x36.png" })
)
);
var App = (function (_React$Component) {
babelHelpers.inherits(App, _React$Component);
function App() {
babelHelpers.classCallCheck(this, App);
babelHelpers.get(Object.getPrototypeOf(App.prototype), "constructor", this).apply(this, arguments);
}
babelHelpers.createClass(App, [{
key: "render",
value: function render() {
var navbarHeader = _ref;
return React.createElement(
"div",
null,
React.createElement(
"nav",
{ className: "navbar navbar-default" },
React.createElement(
"div",
{ className: "container" },
navbarHeader
)
)
);
}
}]);
return App;
})(React.Component);

View File

@ -1,8 +0,0 @@
var x = (React.createElement("div", {
/* a multi-line
comment */
attr1: "foo"},
React.createElement("span", {// a double-slash comment
attr2: "bar"}
)
));

View File

@ -0,0 +1,31 @@
var _ref = <div className="navbar-header">
<a className="navbar-brand" href="/">
<img src="/img/logo/logo-96x36.png" />
</a>
</div>;
let App =
/*#__PURE__*/
function (_React$Component) {
babelHelpers.inherits(App, _React$Component);
function App() {
babelHelpers.classCallCheck(this, App);
return babelHelpers.possibleConstructorReturn(this, (App.__proto__ || Object.getPrototypeOf(App)).apply(this, arguments));
}
babelHelpers.createClass(App, [{
key: "render",
value: function render() {
const navbarHeader = _ref;
return <div>
<nav className="navbar navbar-default">
<div className="container">
{navbarHeader}
</div>
</nav>
</div>;
}
}]);
return App;
}(React.Component);

View File

@ -0,0 +1 @@
React.createElement("div", null, "\xA0 ");

View File

@ -0,0 +1 @@
React.createElement("div", null, "\xA0");

View File

@ -0,0 +1,8 @@
var x = React.createElement("div", {
/* a multi-line
comment */
attr1: "foo"
}, React.createElement("span", {
// a double-slash comment
attr2: "bar"
}));

View File

@ -6,4 +6,3 @@ var example2 = "".concat(1);
var example3 = 1 + "".concat(foo).concat(bar).concat(baz);
var example4 = 1 + "".concat(foo, "bar").concat(baz);
var example5 = "";