fix optimisation.react.constantElements test fixture names

This commit is contained in:
Sebastian McKenzie
2015-03-30 01:22:59 +11:00
parent ca5daca5dd
commit c4d260231b
13 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
var Foo = require("Foo");
function render() {
return <Foo />;
}

View File

@@ -0,0 +1,9 @@
"use strict";
var Foo = require("Foo");
var _ref = <Foo />;
function render() {
return _ref;
}

View File

@@ -0,0 +1,13 @@
function render(text) {
return function () {
return <foo>{text}</foo>;
};
}
var Foo2 = require("Foo");
function createComponent(text) {
return function render() {
return <Foo2>{text}</Foo2>;
};
}

View File

@@ -0,0 +1,19 @@
"use strict";
function render(text) {
var _ref = <foo>{text}</foo>;
return function () {
return _ref;
};
}
var Foo2 = require("Foo");
function createComponent(text) {
var _ref = <Foo2>{text}</Foo2>;
return function render() {
return _ref;
};
}

View File

@@ -0,0 +1,7 @@
function render() {
return <foo />;
}
function render() {
return <div className="foo"><input type="checkbox" checked={true} /></div>;
}

View File

@@ -0,0 +1,13 @@
"use strict";
var _ref = <foo />;
function render() {
return _ref;
}
var _ref = <div className="foo"><input type="checkbox" checked={true} /></div>;
function render() {
return _ref;
}

View File

@@ -0,0 +1,6 @@
function render() {
var text = getText();
return function () {
return <foo>{text}</foo>;
};
}

View File

@@ -0,0 +1,11 @@
"use strict";
function render() {
var text = getText();
var _ref = <foo>{text}</foo>;
return function () {
return _ref;
};
}

View File

@@ -0,0 +1,5 @@
{
"noCheckAst": true,
"optional": ["optimisation.react.constantElements"],
"blacklist": ["react"]
}

View File

@@ -0,0 +1,3 @@
function render() {
return <foo ref="foobar" />;
}

View File

@@ -0,0 +1,5 @@
"use strict";
function render() {
return <foo ref="foobar" />;
}

View File

@@ -0,0 +1,3 @@
function render() {
return <foo {...foobar} />;
}

View File

@@ -0,0 +1,5 @@
"use strict";
function render() {
return <foo {...foobar} />;
}