Home
last modified time | relevance | path

Searched refs:createElement (Results 1 – 25 of 405) sorted by relevance

12345678910>>...17

/third_party/parse5/packages/parse5/test/
Dopen-element-stack.test.js15 const element1 = treeAdapter.createElement('#element1', 'namespace1', []);
16 const element2 = treeAdapter.createElement('#element2', 'namespace2', []);
34 const element = treeAdapter.createElement('#element', 'namespace1', []);
51 const element = treeAdapter.createElement('#element', 'namespace', []);
52 const newElement = treeAdapter.createElement('#newElement', 'newElementNamespace', []);
64 const element1 = treeAdapter.createElement('#element1', 'namespace1', []);
65 const element2 = treeAdapter.createElement('#element2', 'namespace2', []);
66 const element3 = treeAdapter.createElement('#element3', 'namespace3', []);
82 const element1 = treeAdapter.createElement('#element1', NS.HTML, []);
83 const element2 = treeAdapter.createElement('#element2', NS.HTML, []);
[all …]
/third_party/typescript/tests/baselines/reference/
DoverloadingOnConstants1.symbols24 createElement(tagName: 'canvas'): Derived1;
25 >createElement : Symbol(Document2.createElement, Decl(overloadingOnConstants1.ts, 5, 21), Decl(over…
29 createElement(tagName: 'div'): Derived2;
30 >createElement : Symbol(Document2.createElement, Decl(overloadingOnConstants1.ts, 5, 21), Decl(over…
34 createElement(tagName: 'span'): Derived3;
35 >createElement : Symbol(Document2.createElement, Decl(overloadingOnConstants1.ts, 5, 21), Decl(over…
39 createElement(tagName: string): Base;
40 >createElement : Symbol(Document2.createElement, Decl(overloadingOnConstants1.ts, 5, 21), Decl(over…
50 var htmlElement: Base = d2.createElement("yo")
53 >d2.createElement : Symbol(Document2.createElement, Decl(overloadingOnConstants1.ts, 5, 21), Decl(o…
[all …]
DoverloadingOnConstants1.types22 createElement(tagName: 'canvas'): Derived1;
23 >createElement : { (tagName: 'canvas'): Derived1; (tagName: "div"): Derived2; (tagName: "span"): De…
26 createElement(tagName: 'div'): Derived2;
27 >createElement : { (tagName: "canvas"): Derived1; (tagName: 'div'): Derived2; (tagName: "span"): De…
30 createElement(tagName: 'span'): Derived3;
31 >createElement : { (tagName: "canvas"): Derived1; (tagName: "div"): Derived2; (tagName: 'span'): De…
34 createElement(tagName: string): Base;
35 >createElement : { (tagName: "canvas"): Derived1; (tagName: "div"): Derived2; (tagName: "span"): De…
43 var htmlElement: Base = d2.createElement("yo")
45 >d2.createElement("yo") : Base
[all …]
DoverloadingOnConstants1.js8 createElement(tagName: 'canvas'): Derived1;
9 createElement(tagName: 'div'): Derived2;
10 createElement(tagName: 'span'): Derived3;
11 createElement(tagName: string): Base;
17 var htmlElement: Base = d2.createElement("yo")
18 var htmlCanvasElement: Derived1 = d2.createElement("canvas");
19 var htmlDivElement: Derived2 = d2.createElement("div");
20 var htmlSpanElement: Derived3 = d2.createElement("span");
23 var htmlElement2: Derived1 = d2.createElement("yo")
24 var htmlCanvasElement2: Derived3 = d2.createElement("canvas");
[all …]
DjsxNamespacePrefixInNameReact.js46 var justElement1 = React.createElement("a:element", null);
47 var justElement2 = React.createElement("a:element", null);
48 var justElement3 = React.createElement("a:element", { attr: "value" });
49 var justElement4 = React.createElement("a:element", null, "text");
50 var justElement5 = React.createElement("a:element", { attr: "value" }, "text");
51 var tooManySeparators1 = React.createElement("a:ele", { ment: true });
52 var tooManySeparators2 = React.createElement("a:ele", { ment: true }), ment;
54 var tooManySeparators3 = React.createElement("a:ele", { ment: true, attr: "value" }), ment;
56 var tooManySeparators4 = React.createElement("a:ele", { ment: true }, "text"), ment;
58 var tooManySeparators5 = React.createElement("a:ele", { ment: true, attr: "value" }, "text"), ment;
[all …]
DtsxFragmentReactEmit.js19 React.createElement(React.Fragment, null); // no whitespace
20 React.createElement(React.Fragment, null); // lots of whitespace
21 React.createElement(React.Fragment, null); // comments in the tags
22 React.createElement(React.Fragment, null, "hi"); // text inside
23 React.createElement(React.Fragment, null,
24 React.createElement("span", null, "hi"),
25 React.createElement("div", null, "bye")); // children
26 React.createElement(React.Fragment, null,
27 React.createElement("span", null, "1"),
28 React.createElement(React.Fragment, null,
[all …]
DtsxReactEmit1.js51 var selfClosed1 = React.createElement("div", null);
52 var selfClosed2 = React.createElement("div", { x: "1" });
53 var selfClosed3 = React.createElement("div", { x: '1' });
54 var selfClosed4 = React.createElement("div", { x: "1", y: '0' });
55 var selfClosed5 = React.createElement("div", { x: 0, y: '0' });
56 var selfClosed6 = React.createElement("div", { x: "1", y: '0' });
57 var selfClosed7 = React.createElement("div", { x: p, y: 'p', b: true });
58 var openClosed1 = React.createElement("div", null);
59 var openClosed2 = React.createElement("div", { n: 'm' }, "foo");
60 var openClosed3 = React.createElement("div", { n: 'm' }, p);
[all …]
DoverloadOnConstConstraintChecks1.symbols24 createElement(tagName: string): Base;
25 >createElement : Symbol(MyDoc.createElement, Decl(overloadOnConstConstraintChecks1.ts, 5, 17), Decl…
29 createElement(tagName: 'canvas'): Derived1;
30 >createElement : Symbol(MyDoc.createElement, Decl(overloadOnConstConstraintChecks1.ts, 5, 17), Decl…
34 createElement(tagName: 'div'): Derived2;
35 >createElement : Symbol(MyDoc.createElement, Decl(overloadOnConstConstraintChecks1.ts, 5, 17), Decl…
39 createElement(tagName: 'span'): Derived3;
40 >createElement : Symbol(MyDoc.createElement, Decl(overloadOnConstConstraintChecks1.ts, 5, 17), Decl…
51 createElement(tagName:string): Base;
52 >createElement : Symbol(D.createElement, Decl(overloadOnConstConstraintChecks1.ts, 13, 26), Decl(ov…
[all …]
DjsxFactoryIdentifier.js21 export function createElement(args: any[]) {
28 export let createElement = Element.createElement;
36 let createElement = Element.createElement; variable
56 exports.createElement = exports.Element = void 0;
63 function createElement(args) { function
66 Element.createElement = createElement;
68 exports.createElement = Element.createElement;
77 let createElement = Element_1.Element.createElement;
82 createElement("meta", { content: "helloworld" }),
83 createElement("meta", { content: c.a.b })
DoverloadOnConstConstraintChecks1.types22 createElement(tagName: string): Base;
23 >createElement : { (tagName: string): Base; (tagName: "canvas"): Derived1; (tagName: "div"): Derive…
26 createElement(tagName: 'canvas'): Derived1;
27 >createElement : { (tagName: string): Base; (tagName: 'canvas'): Derived1; (tagName: "div"): Derive…
30 createElement(tagName: 'div'): Derived2;
31 >createElement : { (tagName: string): Base; (tagName: "canvas"): Derived1; (tagName: 'div'): Derive…
34 createElement(tagName: 'span'): Derived3;
35 >createElement : { (tagName: string): Base; (tagName: "canvas"): Derived1; (tagName: "div"): Derive…
44 createElement(tagName:string): Base;
45 >createElement : { (tagName: string): Base; (tagName: "canvas"): Derived1; (tagName: "div"): Derive…
[all …]
DjsxIntrinsicElementsTypeArgumentErrors.js38 var a = React.createElement("div", null); // empty type args
39 var b = React.createElement("div", null); // trailing comma type args
40 var c = React.createElement("div", null); // nonexistant type args
41 var d = React.createElement("div", null); // nested missing type args
42 var e = React.createElement("div", null); // existing but incorrect nested type args
43 var f = React.createElement("div", null); // existing type argument with no internal issues
45 var g = React.createElement("div", null); // empty type args
46 var h = React.createElement("div", null); // trailing comma type args
47 var i = React.createElement("div", null); // nonexistant type args
48 var j = React.createElement("div", null); // nested missing type args
[all …]
DtsxReactEmitWhitespace.js72 React.createElement("div", null, " ");
74 React.createElement("div", null,
79 React.createElement("div", null, p);
81 React.createElement("div", null, p);
83 React.createElement("div", null, " 3");
85 React.createElement("div", null, " 3 ");
87 React.createElement("div", null, "3");
89 React.createElement("div", null);
91 React.createElement("div", null, "foo bar");
93 React.createElement("div", null, "hello\\ world");
[all …]
DtsxReactEmitNesting.js40 return vdom.createElement("section", { "class": "todoapp" },
41 vdom.createElement("header", { "class": "header" },
42 vdom.createElement("h1", null, "todos <x>"),
43 …vdom.createElement("input", { "class": "new-todo", autofocus: true, autocomplete: "off", placehold…
44 …vdom.createElement("section", { "class": "main", style: { display: (model.todos && model.todos.len…
45 …vdom.createElement("input", { "class": "toggle-all", type: "checkbox", onChange: ctrl.toggleAll.bi…
46 … vdom.createElement("ul", { "class": "todo-list" }, model.filteredTodos.map(function (todo) {
47 …return vdom.createElement("li", { "class": { todo: true, completed: todo.completed, editing: todo …
48 vdom.createElement("div", { "class": "view" },
50 vdom.createElement("input", { "class": "toggle", type: "checkbox" })
[all …]
DjsxEmitWithAttributes.js21 export function createElement(args: any[]) {
28 export let createElement = Element.createElement;
55 exports.createElement = exports.Element = void 0;
62 function createElement(args) { function
65 Element.createElement = createElement;
67 exports.createElement = Element.createElement;
79 Element_1.Element.createElement("meta", { content: "helloworld" }),
80 Element_1.Element.createElement("meta", { content: c.a.b })
DjsxFactoryNotIdentifierOrQualifiedName2.js21 export function createElement(args: any[]) {
28 export let createElement = Element.createElement;
55 exports.createElement = exports.Element = void 0;
62 function createElement(args) { function
65 Element.createElement = createElement;
67 exports.createElement = Element.createElement;
78 React.createElement("meta", { content: "helloworld" }),
79 React.createElement("meta", { content: c.a.b })
DjsxFactoryQualifiedName.js21 export function createElement(args: any[]) {
28 export let createElement = Element.createElement;
55 exports.createElement = exports.Element = void 0;
62 function createElement(args) { function
65 Element.createElement = createElement;
67 exports.createElement = Element.createElement;
80 Element_1.Element.createElement("meta", { content: "helloworld" }),
81 Element_1.Element.createElement("meta", { content: c.a.b })
DjsxFactoryNotIdentifierOrQualifiedName.js21 export function createElement(args: any[]) {
28 export let createElement = Element.createElement;
55 exports.createElement = exports.Element = void 0;
62 function createElement(args) { function
65 Element.createElement = createElement;
67 exports.createElement = Element.createElement;
78 React.createElement("meta", { content: "helloworld" }),
79 React.createElement("meta", { content: c.a.b })
DjsxFactoryAndReactNamespace.js21 export function createElement(args: any[]) {
28 export let createElement = Element.createElement;
55 exports.createElement = exports.Element = void 0;
62 function createElement(args) { function
65 Element.createElement = createElement;
67 exports.createElement = Element.createElement;
79 Element_1.Element.createElement("meta", { content: "helloworld" }),
80 Element_1.Element.createElement("meta", { content: c.a.b })
DjsxChildrenIndividualErrorElaborations.js86 return React.createElement(React.Fragment, null);
90 var a = React.createElement(Blah, null, function (x) { return x; });
92 var a = React.createElement(Blah, null, "Hello unexpected text!");
94 var a = React.createElement(Blah, null,
98 return React.createElement(React.Fragment, null);
102 var a = React.createElement(Blah2, null, function (x) { return x; });
104 var a = React.createElement(Blah2, null, "Hello unexpected text!");
106 var a = React.createElement(Blah2, null,
110 return React.createElement(React.Fragment, null);
114 var a = React.createElement(Blah3, null, function (x) { return x; });
[all …]
DtsxReactEmit7.js23 var m = React.createElement("div", { "x-y": "val" });
24 var n = React.createElement("div", { "xx-y": "val" });
25 var o = React.createElement("div", { "x-yy": "val" });
26 var p = React.createElement("div", { "xx-yy": "val" });
28 var a = React.createElement("div", { x: "val" });
29 var b = React.createElement("div", { xx: "val" });
30 var c = React.createElement("div", { xxx: "val" });
31 var d = React.createElement("div", { xxxx: "val" });
32 var e = React.createElement("div", { xxxxx: "val" });
DjsxFactoryIdentifier.symbols51 export function createElement(args: any[]) {
52 >createElement : Symbol(createElement, Decl(Element.ts, 15, 5))
60 export let createElement = Element.createElement;
61 >createElement : Symbol(createElement, Decl(Element.ts, 24, 10))
62 >Element.createElement : Symbol(Element.createElement, Decl(Element.ts, 15, 5))
64 >createElement : Symbol(Element.createElement, Decl(Element.ts, 15, 5))
83 let createElement = Element.createElement;
84 >createElement : Symbol(createElement, Decl(test.tsx, 1, 3))
85 >Element.createElement : Symbol(Element.createElement, Decl(Element.ts, 15, 5))
87 >createElement : Symbol(Element.createElement, Decl(Element.ts, 15, 5))
DunicodeEscapesInJsxtags.js26 const Compa = (x) => React.createElement("div", null, "" + x);
27 let a = React.createElement("a", null); // works
28 let ab = React.createElement("a-b", null); // works
29 let ac = React.createElement("a-c", null); // works
30 let compa = React.createElement(Comp\u0061, { x: 12 }); // works
31 let a2 = React.createElement("a", null); // works
32 let ab2 = React.createElement("a-b", null); // works
33 let ac2 = React.createElement("a-c", null); // works
34 let compa2 = React.createElement(Comp\u{0061}, { x: 12 }); // works
/third_party/typescript/tests/cases/compiler/
DoverloadingOnConstants1.ts7 createElement(tagName: 'canvas'): Derived1; method
8 createElement(tagName: 'div'): Derived2; method
9 createElement(tagName: 'span'): Derived3; method
10 createElement(tagName: string): Base; method
16 var htmlElement: Base = d2.createElement("yo")
17 var htmlCanvasElement: Derived1 = d2.createElement("canvas");
18 var htmlDivElement: Derived2 = d2.createElement("div");
19 var htmlSpanElement: Derived3 = d2.createElement("span");
22 var htmlElement2: Derived1 = d2.createElement("yo")
23 var htmlCanvasElement2: Derived3 = d2.createElement("canvas");
[all …]
DoverloadOnConstConstraintChecks1.ts7 createElement(tagName: string): Base; method
8 createElement(tagName: 'canvas'): Derived1; method
9 createElement(tagName: 'div'): Derived2; method
10 createElement(tagName: 'span'): Derived3; method
15 createElement(tagName:string): Base; method in D
16 createElement(tagName: 'canvas'): Derived1;
17 createElement(tagName: 'div'): Derived2;
18 createElement(tagName: 'span'): Derived3;
19 createElement(tagName:any): Base {
/third_party/flutter/engine/flutter/lib/web_ui/test/
Ddom_renderer_test.dart13 var element = renderer.createElement('div');
18 var parent = renderer.createElement('div');
19 var child = renderer.createElement('div');
25 var element = renderer.createElement('div');
31 var element = renderer.createElement('div');
37 var element = renderer.createElement('div');
44 var element = renderer.createElement('div');
53 var element = renderer.createElement('div');
59 var element = renderer.createElement('div');
67 var element = renderer.createElement('div');
[all …]

12345678910>>...17