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:
parent
0f60d42fdf
commit
f9e0805337
@ -38,4 +38,4 @@ declare export opaque type Bar<T>;
|
|||||||
declare export opaque type Baz: Foo;
|
declare export opaque type Baz: Foo;
|
||||||
declare export opaque type Foo<T>: Bar<T>;
|
declare export opaque type Foo<T>: Bar<T>;
|
||||||
declare export opaque type Foo<T>: Bar;
|
declare export opaque type Foo<T>: Bar;
|
||||||
declare export opaque type Foo: Bar<T>;
|
declare export opaque type Foo: Bar<T>;
|
||||||
@ -15,4 +15,4 @@ declare module A {
|
|||||||
declare module.exports: {
|
declare module.exports: {
|
||||||
foo(): number
|
foo(): number
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -41,4 +41,4 @@ declare module.exports: {
|
|||||||
declare opaque type Foo<T>: Bar<T>;
|
declare opaque type Foo<T>: Bar<T>;
|
||||||
declare opaque type ID;
|
declare opaque type ID;
|
||||||
declare opaque type num: number;
|
declare opaque type num: number;
|
||||||
declare opaque type NumArray;
|
declare opaque type NumArray;
|
||||||
@ -27,4 +27,4 @@ type T = {
|
|||||||
};
|
};
|
||||||
type T = {
|
type T = {
|
||||||
[param: string]: U
|
[param: string]: U
|
||||||
};
|
};
|
||||||
@ -7,4 +7,4 @@ opaque type union = {
|
|||||||
} | {
|
} | {
|
||||||
type: "B"
|
type: "B"
|
||||||
};
|
};
|
||||||
opaque type overloads = (x: string) => number & (x: number) => string;
|
opaque type overloads = (x: string) => number & (x: number) => string;
|
||||||
@ -288,4 +288,4 @@ function foo(numVal: number = 2) {}
|
|||||||
|
|
||||||
function foo(numVal?: number = 2) {}
|
function foo(numVal?: number = 2) {}
|
||||||
|
|
||||||
export type * from "foo";
|
export type * from "foo";
|
||||||
@ -32,4 +32,4 @@ async function f() {
|
|||||||
|
|
||||||
function* f() {
|
function* f() {
|
||||||
class A extends (yield 1) {}
|
class A extends (yield 1) {}
|
||||||
}
|
}
|
||||||
@ -16,4 +16,4 @@ function foo() {
|
|||||||
|
|
||||||
function foo() {
|
function foo() {
|
||||||
return /a/;
|
return /a/;
|
||||||
}
|
}
|
||||||
@ -1,4 +1,4 @@
|
|||||||
throw err;
|
throw err;
|
||||||
throw Error("foobar");
|
throw Error("foobar");
|
||||||
throw new Error("foobar");
|
throw new Error("foobar");
|
||||||
throw /a/;
|
throw /a/;
|
||||||
@ -1,4 +1,4 @@
|
|||||||
++i;
|
++i;
|
||||||
i++;
|
i++;
|
||||||
(foo++).test();
|
(foo++).test();
|
||||||
obj.foo /*comment*/++;
|
obj.foo /*comment*/++;
|
||||||
@ -2,4 +2,4 @@ var Foo = function Foo() {
|
|||||||
babelHelpers.classCallCheck(this, Foo);
|
babelHelpers.classCallCheck(this, Foo);
|
||||||
};
|
};
|
||||||
|
|
||||||
Foo.bar = void 0;
|
Foo.bar = void 0;
|
||||||
|
|||||||
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"plugins": ["proposal-class-properties", "transform-classes"],
|
||||||
|
"minNodeVersion": "6.0.0",
|
||||||
|
"throws": "Class \"A\" cannot be referenced in computed property keys."
|
||||||
|
}
|
||||||
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"plugins": ["proposal-class-properties", "transform-classes"],
|
||||||
|
"minNodeVersion": "6.0.0",
|
||||||
|
"throws": "Class \"C\" cannot be referenced in computed property keys."
|
||||||
|
}
|
||||||
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"plugins": [["proposal-class-properties", {"loose": true}]],
|
||||||
|
"minNodeVersion": "6.0.0",
|
||||||
|
"throws": "Class \"C\" cannot be referenced in computed property keys."
|
||||||
|
}
|
||||||
@ -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
|
|
||||||
});
|
|
||||||
@ -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
|
|
||||||
});
|
|
||||||
@ -1,3 +0,0 @@
|
|||||||
{
|
|
||||||
"throws": "Class \"C\" cannot be referenced in computed property keys."
|
|
||||||
}
|
|
||||||
@ -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;
|
|
||||||
@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"throws": "Class \"C\" cannot be referenced in computed property keys.",
|
|
||||||
"plugins": [["proposal-class-properties", {"loose": true}]]
|
|
||||||
}
|
|
||||||
@ -1,4 +0,0 @@
|
|||||||
{
|
|
||||||
"plugins": ["proposal-class-properties", "transform-classes"],
|
|
||||||
"minNodeVersion": "6.0.0"
|
|
||||||
}
|
|
||||||
@ -1 +1 @@
|
|||||||
function foo(numVal, strVal) {}
|
function foo(numVal, strVal) {}
|
||||||
|
|||||||
@ -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);
|
|
||||||
@ -1 +0,0 @@
|
|||||||
React.createElement("div", null, "\u00A0 ");
|
|
||||||
@ -1 +0,0 @@
|
|||||||
React.createElement("div", null, "\u00A0");
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
var x = (React.createElement("div", {
|
|
||||||
/* a multi-line
|
|
||||||
comment */
|
|
||||||
attr1: "foo"},
|
|
||||||
React.createElement("span", {// a double-slash comment
|
|
||||||
attr2: "bar"}
|
|
||||||
)
|
|
||||||
));
|
|
||||||
@ -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);
|
||||||
@ -0,0 +1 @@
|
|||||||
|
React.createElement("div", null, "\xA0 ");
|
||||||
@ -0,0 +1 @@
|
|||||||
|
React.createElement("div", null, "\xA0");
|
||||||
@ -0,0 +1,8 @@
|
|||||||
|
var x = React.createElement("div", {
|
||||||
|
/* a multi-line
|
||||||
|
comment */
|
||||||
|
attr1: "foo"
|
||||||
|
}, React.createElement("span", {
|
||||||
|
// a double-slash comment
|
||||||
|
attr2: "bar"
|
||||||
|
}));
|
||||||
@ -1,2 +0,0 @@
|
|||||||
/** @jsx dom */
|
|
||||||
dom(React.Fragment, null);
|
|
||||||
@ -6,4 +6,3 @@ var example2 = "".concat(1);
|
|||||||
var example3 = 1 + "".concat(foo).concat(bar).concat(baz);
|
var example3 = 1 + "".concat(foo).concat(bar).concat(baz);
|
||||||
var example4 = 1 + "".concat(foo, "bar").concat(baz);
|
var example4 = 1 + "".concat(foo, "bar").concat(baz);
|
||||||
var example5 = "";
|
var example5 = "";
|
||||||
|
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
x;
|
x;
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
x;
|
x;
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
x;
|
x;
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
class C extends D {}
|
class C extends D {}
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
class C {}
|
class C {}
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
class C {
|
class C {
|
||||||
m(x, ...y) {}
|
m(x, ...y) {}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,4 +4,4 @@ class C extends Object {
|
|||||||
this.x = x;
|
this.x = x;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,4 +5,4 @@ class C {
|
|||||||
this.z = z;
|
this.z = z;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
class C {
|
class C {
|
||||||
b = 0;
|
b = 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
export class C2 {}
|
export class C2 {}
|
||||||
|
|||||||
@ -9,4 +9,4 @@ var E;
|
|||||||
E[E["f"] = -1] = "f";
|
E[E["f"] = -1] = "f";
|
||||||
E[E["g"] = 5.4] = "g";
|
E[E["g"] = 5.4] = "g";
|
||||||
E[E["h"] = 6.4] = "h";
|
E[E["h"] = 6.4] = "h";
|
||||||
})(E || (E = {}));
|
})(E || (E = {}));
|
||||||
|
|||||||
@ -6,4 +6,4 @@ export let E;
|
|||||||
|
|
||||||
(function (E) {
|
(function (E) {
|
||||||
E[E["B"] = 2] = "B";
|
E[E["B"] = 2] = "B";
|
||||||
})(E || (E = {}));
|
})(E || (E = {}));
|
||||||
|
|||||||
@ -3,4 +3,4 @@ var E;
|
|||||||
(function (E) {
|
(function (E) {
|
||||||
E[E["x"] = 0] = "x";
|
E[E["x"] = 0] = "x";
|
||||||
E[E["y"] = 1] = "y";
|
E[E["y"] = 1] = "y";
|
||||||
})(E || (E = {}));
|
})(E || (E = {}));
|
||||||
|
|||||||
@ -3,4 +3,4 @@
|
|||||||
let E;
|
let E;
|
||||||
|
|
||||||
(function (E) {})(E || (E = {}));
|
(function (E) {})(E || (E = {}));
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
function f() {}
|
function f() {}
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
function f(x, ...y) {}
|
function f(x, ...y) {}
|
||||||
|
|
||||||
function g(x = 0) {}
|
function g(x = 0) {}
|
||||||
|
|||||||
@ -8,4 +8,4 @@ const o = {
|
|||||||
class C {
|
class C {
|
||||||
m() {}
|
m() {}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,2 +1,2 @@
|
|||||||
import "a";
|
import "a";
|
||||||
import "b";
|
import "b";
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
// Don't elide React if a JSX element appears somewhere.
|
// Don't elide React if a JSX element appears somewhere.
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
<div />;
|
<div />;
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
// Don't elide React if a JSX element appears somewhere.
|
// Don't elide React if a JSX element appears somewhere.
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
<div></div>;
|
<div></div>;
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
const x = 0;
|
const x = 0;
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
const x = 0;
|
const x = 0;
|
||||||
|
|||||||
@ -3,4 +3,4 @@ import { A } from "m";
|
|||||||
class Class extends A {}
|
class Class extends A {}
|
||||||
|
|
||||||
const x = 0;
|
const x = 0;
|
||||||
const y = 0;
|
const y = 0;
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
const x = 0;
|
const x = 0;
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
const x = 0;
|
const x = 0;
|
||||||
|
|||||||
@ -3,4 +3,4 @@ import Used2 from "lib";
|
|||||||
import * as Used3 from "lib";
|
import * as Used3 from "lib";
|
||||||
const x = Used;
|
const x = Used;
|
||||||
const y = Used2;
|
const y = Used2;
|
||||||
const z = Used3;
|
const z = Used3;
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
f();
|
f();
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
new C();
|
new C();
|
||||||
|
|||||||
@ -3,4 +3,4 @@ const [a, b] = 0;
|
|||||||
const {
|
const {
|
||||||
x,
|
x,
|
||||||
y
|
y
|
||||||
} = 0;
|
} = 0;
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
const a = () => 1;
|
const a = () => 1;
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
import "core-js";
|
import "core-js";
|
||||||
|
|||||||
@ -1,3 +1,3 @@
|
|||||||
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
|
||||||
|
|
||||||
_typeof(Symbol());
|
_typeof(Symbol());
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
import a from "a";
|
import a from "a";
|
||||||
|
|||||||
@ -2,4 +2,4 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|||||||
|
|
||||||
var a = _defineProperty({
|
var a = _defineProperty({
|
||||||
b: 1
|
b: 1
|
||||||
}, "b", 2);
|
}, "b", 2);
|
||||||
|
|||||||
@ -1 +1 @@
|
|||||||
function foo(numVal, strVal) {}
|
function foo(numVal, strVal) {}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user