Home
last modified time | relevance | path

Searched refs:shouldBe (Results 1 – 25 of 118) sorted by relevance

12345

/external/webkit/LayoutTests/fast/dom/Node/script-tests/
Dinitial-values.js7 shouldBe("attr.nodeName", "'foo'");
8 shouldBe("attr.name", "'foo'");
11 shouldBe("attr.localName", "null");
12 shouldBe("attr.namespaceURI", "null");
13 shouldBe("attr.prefix", "null");
14 shouldBe("attr.nodeValue", "''");
15 shouldBe("attr.value", "''");
16 shouldBe("attr.attributes", "null");
20 shouldBe("attr.nodeName", "'example:foo'");
21 shouldBe("attr.name", "'example:foo'");
[all …]
/external/webkit/LayoutTests/fast/js/resources/
Dselect-options-remove.js8 shouldBe("select1.options.remove(value)", "undefined");
9 shouldBe("select1.options.length", "0");
10 shouldBe("select1.selectedIndex", "-1");
15 shouldBe("select1.options.remove(value)", "undefined");
16 shouldBe("select1.options.length", "0");
17 shouldBe("select1.selectedIndex", "-1");
22 shouldBe("select1.options.remove(value)", "undefined");
23 shouldBe("select1.options.length", "0");
24 shouldBe("select1.selectedIndex", "-1");
29 shouldBe("select1.options.remove(value)", "undefined");
[all …]
Dconst.js10 shouldBe("x", '"RIGHT"');
14 shouldBe("y", '"RIGHT"');
22 shouldBe("a", "1");
23 shouldBe("one", "1");
27 shouldBe("a", "1");
28 shouldBe("one", "1");
32 shouldBe("a", "2");
33 shouldBe("one", "1");
37 shouldBe("a", "0");
38 shouldBe("one", "1");
[all …]
/external/webkit/LayoutTests/fast/dom/HTMLFontElement/script-tests/
Dsize-attribute.js17 shouldBe('fontSizeAttributeEffect("")', 'null');
19 shouldBe('fontSizeAttributeEffect("1")', '"10px"');
20 shouldBe('fontSizeAttributeEffect("2")', '"13px"');
21 shouldBe('fontSizeAttributeEffect("3")', '"16px"');
22 shouldBe('fontSizeAttributeEffect("4")', '"18px"');
23 shouldBe('fontSizeAttributeEffect("5")', '"24px"');
24 shouldBe('fontSizeAttributeEffect("6")', '"32px"');
25 shouldBe('fontSizeAttributeEffect("7")', '"48px"');
27 shouldBe('fontSizeAttributeEffect("0")', '"10px"');
29 shouldBe('fontSizeAttributeEffect("-1")', '"13px"');
[all …]
/external/webkit/Source/JavaScriptCore/API/tests/
Dtestapi.js42 function shouldBe(a, b) function
75 shouldBe("globalStaticValue", 3);
76 shouldBe("globalStaticFunction()", 4);
78 shouldBe("typeof MyObject", "function"); // our object implements 'call'
80 shouldBe("MyObject.cantFind", undefined);
82 shouldBe("MyObject.regularType", 1);
84 shouldBe("MyObject.alwaysOne", 1);
87 shouldBe("MyObject.cantDelete", 1);
88 shouldBe("delete MyObject.throwOnDelete", "an exception");
90 shouldBe("MyObject.cantSet", undefined);
[all …]
/external/webkit/LayoutTests/fast/dom/HTMLFormElement/script-tests/
Delements-not-in-document.js10 shouldBe("i.getAttribute('name')", "'first'");
11 shouldBe("i.name", "'first'");
12 shouldBe("i.getAttribute('type')", "'text'");
13 shouldBe("i.type", "'text'");
14 shouldBe("i.value", "'test'");
15 shouldBe("f.elements.length", "1");
16 shouldBe("f.elements[0]", "i");
17 shouldBe("f.elements.first", "i");
25 shouldBe("f.elements.second", "i");
27 shouldBe("i.getAttribute('name')", "'second'");
[all …]
/external/webkit/LayoutTests/fast/dom/HTMLLabelElement/script-tests/
Dlabel-control.js5 shouldBe("document.getElementById('test1').control.id", "'inputId1'");
9 shouldBe("document.getElementById('test2').htmlFor", "'inputId2'");
10 shouldBe("document.getElementById('test2').control.type", "'number'");
14 shouldBe("document.getElementById('test3').control.id", "'inputId3'");
19 shouldBe("document.getElementById('test4').control.id", "'inputId4'");
24 shouldBe("document.getElementById('test5').control.id", "'inputId5'");
29 shouldBe("document.getElementById('test6').control.id", "'inputId6'");
34 shouldBe("document.getElementById('test7').control.id", "'inputId7'");
38 shouldBe("document.getElementById('test8').control", "null");
42 shouldBe("document.getElementById('test9').htmlFor", "'divId'");
[all …]
/external/webkit/LayoutTests/storage/domstorage/script-tests/
Dcomplex-keys.js14 shouldBe("storage.length", "0");
19 shouldBe("storage.length", "1");
38 shouldBe("storage.length", "2");
47 shouldBe("storage.length", "3");
55 shouldBe("storage.length", "3");
64 shouldBe("storage.length", "4");
72 shouldBe("storage.length", "4");
81 shouldBe("storage.length", "5");
89 shouldBe("storage.length", "5");
97 shouldBe("storage.length", "6");
[all …]
/external/webkit/LayoutTests/fast/events/touch/script-tests/
Ddocument-create-touch.js14 shouldBe("touch.target", "box");
15 shouldBe("touch.identifier", "1");
16 shouldBe("touch.pageX", "100");
17 shouldBe("touch.pageY", "101");
18 shouldBe("touch.screenX", "102");
19 shouldBe("touch.screenY", "103");
24 shouldBe("emptyTouch.identifier", "0");
25 shouldBe("emptyTouch.pageX", "0");
26 shouldBe("emptyTouch.pageY", "0");
27 shouldBe("emptyTouch.screenX", "0");
[all …]
Dbasic-single-touch-events.js37 shouldBe("lastEvent.touches.length", totalTouchCount.toString());
38 shouldBe("lastEvent.changedTouches.length", changedTouchCount.toString());
39 shouldBe("lastEvent.targetTouches.length", targetTouchCount.toString());
40 shouldBe("lastEvent.pageX", "0");
41 shouldBe("lastEvent.pageY", "0");
46 shouldBe("lastEvent." + list + "[" + point + "].pageX", x.toString());
47 shouldBe("lastEvent." + list + "[" + point + "].pageY", y.toString());
48 shouldBe("lastEvent." + list + "[" + point + "].clientX", x.toString());
49 shouldBe("lastEvent." + list + "[" + point + "].clientY", y.toString());
50 shouldBe("lastEvent." + list + "[" + point + "].identifier", id.toString());
[all …]
/external/webkit/LayoutTests/fast/dom/Attr/script-tests/
Daccess-after-element-destruction.js20 shouldBe("attributes.length", "1");
21 shouldBe("attributes[0]", "attributes.item(0)");
22 shouldBe("attributes.getNamedItem('a')", "attributes.item(0)");
24 shouldBe("attributes.item(0).name", "'a'");
25 shouldBe("attributes.item(0).specified", "true");
26 shouldBe("attributes.item(0).value", "'b'");
27 shouldBe("attributes.item(0).ownerElement.tagName", "'P'");
31 shouldBe("attributes.item(0).value", "'c'");
35 shouldBe("attributes.length", "0");
44 shouldBe("attr.name", "'a'");
[all …]
/external/webkit/LayoutTests/fast/dom/HTMLAnchorElement/script-tests/
Dset-href-attribute-host.js8 shouldBe("a.href", "'https://www.otherdomain.com:0/path/'");
15 shouldBe("a.href", "'https://www.other/?domain.com:8080/path/?key=value'");
23 shouldBe("a.href", "'https://www.otherdomain.com:80/path/'");
28 shouldBe("a.href", "'https://www.otherdomain.com/path/'");
34 shouldBe("a.href", "'https://www.otherdomain.com:44/path/'");
40 shouldBe("a.href", "'https://www.otherdomain.com:0/path/'");
46 shouldBe("a.href", "'https://www.otherdomain.com:0/path/'");
54 shouldBe("a.href", "'https://www.mydomain.com:8080/path/'");
62 shouldBe("a.href", "'https://www.mydomain.com:8080/path/'");
68 shouldBe("a.href", "'file://mydomain.com/path/'");
[all …]
Dset-href-attribute-whitespace.js7 shouldBe("a.hostname", "'www.mydomain.com'");
11 shouldBe("a.hostname", "'www.mydomain.com'");
15 shouldBe("a.hostname", "'www.mydomain.com'");
19 shouldBe("a.hostname", "'www.mydomain.com'");
23 shouldBe("a.hostname", "'www.mydomain.com'");
27 shouldBe("a.hostname", "'www.mydomain.com'");
31 shouldBe("a.hostname", "'www.mydomain.com'");
35 shouldBe("a.hostname", "'www.mydomain.com'");
39 shouldBe("a.hostname", "'www.mydomain.com'");
43 shouldBe("a.hostname", "'www.mydomain.com'");
[all …]
Dset-href-attribute-prevents-rebase.js12 shouldBe("a.href", "'http://new_base/?search'");
19 shouldBe("a.href", "'http://old_base/?search'");
27 shouldBe("a.href", "'http://new_base/path'");
34 shouldBe("a.href", "'http://old_base/path'");
42 shouldBe("a.href", "'http://new_base/#hash'");
49 shouldBe("a.href", "'http://old_base/#hash'");
61 shouldBe("a.href", "'http://host:0/'");
68 shouldBe("a.href", "'http://host:0/'");
76 shouldBe("a.href", "'http://host/'");
83 shouldBe("a.href", "'http://host/'");
[all …]
Dset-href-attribute-hash.js8 shouldBe("a.href", "'https://www.mydomain.com:8080/path/testurl.html#hash-value'");
13 shouldBe("a.href", "'file:///path/testurl.html#hash_value'");
18 shouldBe("a.href", "'http://www.mydomain.com/path/testurl.html#hash?value'");
25 shouldBe("a.href", "'https://www.my\"d(){}|~om?ain#com/path/testurl.html#middle'");
33 shouldBe("a.href", "'https://www.mydomain.com/path/testurl.html#'");
40 shouldBe("a.href", "'https://www.mydomain.com/path/testurl.html#'");
46 shouldBe("a.href", "'mailto:e-mail_address@goes_here#hash-value'");
53 shouldBe("a.href", "'file:///some%20path#hash value'");
58 shouldBe("a.href", "'http://mydomain.com/#'");
65 shouldBe("a.href", "'foo:bar#hash'");
Dset-href-attribute-protocol.js8 shouldBe("a.href", "'http-foo://www.mydomain.com/path/'");
15 shouldBe("a.href", "'http://www.mydomain.com/path/'");
25 shouldBe("a.href", "'https://www.mydomain.com/path/'");
35 shouldBe("a.href", "'foo:^^'");
42 shouldBe("a.href", "'https://www.mydomain.com/path/'");
51 shouldBe("a.href", "'https://www.mydomain.com/path/'");
58 shouldBe("a.href", "'https://www.mydomain.com/path/'");
67 shouldBe("a.href", "'http:??bar'");
73 shouldBe("a.href", "'f-oo:path'");
78 shouldBe("a.href", "'undefined://www.mydomain.com/path/'");
Dset-href-attribute-pathname.js8 shouldBe("a.href", "'https://www.mydomain.com/path%20name?key=value'");
15 shouldBe("a.href", "'https://www.mydomain.com/pa%3Fth?key=value'");
25 shouldBe("a.href", "'https://www.mydomain.com//path%23name?key=value'");
33 shouldBe("a.href", "'https://www.mydomain.com/path?key=value'");
39 shouldBe("a.href", "'https://www.mydomain.com/?key=value'");
44 shouldBe("a.href", "'https://www.mydomain.com/?key=value'");
51 shouldBe("a.href", "'https://www.my|d[]()omain.com/path/testurl.html?key=value'");
58 shouldBe("a.href", "'http://w@/path#ww'");
69 shouldBe("a.href", "'tel:+1800-555-1212'");
Dset-href-attribute-hostname.js8 shouldBe("a.href", "'https://www.otherdomain.com:8080/path/'");
15 shouldBe("a.href", "'https://www.otherdomain.com:8080/path/'");
24 shouldBe("a.href", "'foo://www.otherdomain.com/path/'");
32 shouldBe("a.href", "'https://www.mydomain.com:8080/path/'");
40 shouldBe("a.href", "'https://www.mydomain.com:8080/path/'");
46 shouldBe("a.href", "'really:bad:url'");
55 shouldBe("a.href", "'http://www.my domain.com/path/'");
62 shouldBe("a.href", "'c:/path/testurl.html'");
70 shouldBe("a.href", "'https://undefined:8080/path/'");
Dset-href-attribute-port.js8 shouldBe("a.href", "'https://www.mydomain.com/path/testurl.html?key=value'");
13 shouldBe("a.href", "'https://www.mydomain.com/path/testurl.html?key=value'");
18 shouldBe("a.href", "'https://www.mydomain.com:0/path/testurl.html?key=value'");
24 shouldBe("a.href", "'https://www.mydomain.com:4/path/testurl.html?key=value'");
30 shouldBe("a.href", "'https://www.mydomain.com:0/path/testurl.html?key=value'");
36 shouldBe("a.href", "'https://www.mydomain.com:0/path/testurl.html?key=value'");
41 shouldBe("a.href", "'https://www.mydomain.com:0/path/testurl.html?key=value'");
47 shouldBe("a.href", "'foo://bar:50/'");
/external/webkit/LayoutTests/fast/dom/TreeWalker/resources/
DTreeWalker-currentNode.js13 shouldBe("w.currentNode", "subTree");
15 shouldBe("w.currentNode", "subTree");
23 shouldBe("w.currentNode", "document.documentElement");
25 shouldBe("w.nextNode()", "document.documentElement.firstChild");
26 shouldBe("w.currentNode", "document.documentElement.firstChild");
29 shouldBe("w.currentNode", "document.documentElement");
31 shouldBe("w.firstChild()", "document.documentElement.firstChild");
32 shouldBe("w.currentNode", "document.documentElement.firstChild");
34 shouldBe("w.lastChild()", "document.documentElement.lastChild");
35 shouldBe("w.currentNode", "document.documentElement.lastChild");
[all …]
/external/webkit/LayoutTests/fast/dom/TreeWalker/script-tests/
Dtraversal-skip.js27 shouldBe("walker.nextNode(); walker.currentNode.id", "'A1'");
28 shouldBe("walker.nextNode(); walker.currentNode.id", "'C1'");
29 shouldBe("walker.nextNode(); walker.currentNode.id", "'B2'");
30 shouldBe("walker.nextNode(); walker.currentNode.id", "'B3'");
34 shouldBe("walker.firstChild(); walker.currentNode.id", "'A1'");
35 shouldBe("walker.firstChild(); walker.currentNode.id", "'C1'");
39 shouldBe("walker.firstChild(); walker.currentNode.id", "'A1'");
40 shouldBe("walker.firstChild(); walker.currentNode.id", "'B1'");
41 shouldBe("walker.nextSibling(); walker.currentNode.id", "'B3'");
46 shouldBe("walker.parentNode(); walker.currentNode.id", "'A1'");
[all …]
DacceptNode-filter.js18 shouldBe("walker.firstChild(); walker.currentNode.id", "'A1'");
19 shouldBe("walker.nextNode(); walker.currentNode.id", "'B2'");
31 shouldBe("walker.firstChild(); walker.currentNode.id", "'A1'");
32 shouldBe("walker.nextNode(); walker.currentNode.id", "'B2'");
37 shouldBe("walker.firstChild(); walker.currentNode.id", "'A1'");
38 shouldBe("walker.nextNode(); walker.currentNode.id", "'B1'");
43 shouldBe("walker.firstChild(); walker.currentNode.id", "'A1'");
44 shouldBe("walker.nextNode(); walker.currentNode.id", "'B1'");
50 shouldBe("walker.currentNode.id;", "'root'");
52 shouldBe("walker.currentNode.id;", "'root'");
[all …]
Dtraversal-reject.js27 shouldBe("walker.nextNode(); walker.currentNode.id", "'A1'");
28 shouldBe("walker.nextNode(); walker.currentNode.id", "'B2'");
29 shouldBe("walker.nextNode(); walker.currentNode.id", "'B3'");
33 shouldBe("walker.firstChild(); walker.currentNode.id", "'A1'");
34 shouldBe("walker.firstChild(); walker.currentNode.id", "'B2'");
38 shouldBe("walker.firstChild(); walker.currentNode.id", "'A1'");
39 shouldBe("walker.firstChild(); walker.currentNode.id", "'B1'");
40 shouldBe("walker.nextSibling(); walker.currentNode.id", "'B3'");
45 shouldBe("walker.parentNode(); walker.currentNode.id", "'A1'");
50 shouldBe("walker.previousSibling(); walker.currentNode.id", "'B1'");
[all …]
/external/webkit/LayoutTests/http/tests/appcache/
Ddynamic-entries-no-cache.html-disabled30 function shouldBe(_a, _b)
33 log("WARN: shouldBe() expects string arguments");
54 shouldBe("applicationCache.items.length", "0");
55 shouldBe("applicationCache.items.item(0)", "null");
56 shouldBe("applicationCache.items.item(1)", "null");
57 shouldBe("applicationCache.items.item(0xffffffff)", "null");
58 shouldBe("applicationCache.items.item(0xfffffffe)", "null");
59 shouldBe("applicationCache.items.item(-1)", "null");
60 shouldBe("applicationCache.items.item(-2)", "null");
62 shouldBe("applicationCache.items[0xfffffffe]", "undefined");
[all …]
/external/webkit/LayoutTests/fast/dom/EntityReference/script-tests/
Dreadonly-exceptions.js8 shouldBe("entityReference.ownerDocument", "xmlDoc")
14 shouldBe("entityReference.nodeValue", "null");
17 shouldBe("entityReference.prefix", "null");
20 shouldBe("entityReference.textContent", "'>'");
23 shouldBe("childrenBeforeFailedAppend", "1");
26 shouldBe("entityReference.childNodes.length", "childrenBeforeFailedAppend");
29 shouldBe("childrenBeforeFailedAppend", "1");
31 shouldBe("entityReference.childNodes.length", "childrenBeforeFailedAppend");

12345