/external/webkit/LayoutTests/fast/dom/HTMLFontElement/script-tests/ |
size-attribute.js | 17 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/LayoutTests/fast/js/resources/ |
select-options-remove.js | 8 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...] |
const.js | 10 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...] |
codegen-temporaries-multiple-global-blocks-2.js | 7 shouldBe("v1", "2"); 12 shouldBe("o2.a", "2"); 17 shouldBe("o3.a", "2"); 21 shouldBe("r4", "1"); 26 shouldBe("o5.a", "2"); 31 shouldBe("o6.a", "2"); 36 shouldBe("o7.a", "2"); 41 shouldBe("o8.a", "2");
|
/external/webkit/LayoutTests/storage/indexeddb/ |
constants.html | 19 shouldBe("webkitIDBDatabaseException.UNKNOWN_ERR", "1"); 20 shouldBe("webkitIDBDatabaseException.NON_TRANSIENT_ERR", "2"); 21 shouldBe("webkitIDBDatabaseException.NOT_FOUND_ERR", "3"); 22 shouldBe("webkitIDBDatabaseException.CONSTRAINT_ERR", "4"); 23 shouldBe("webkitIDBDatabaseException.DATA_ERR", "5"); 24 shouldBe("webkitIDBDatabaseException.NOT_ALLOWED_ERR", "6"); 25 shouldBe("webkitIDBDatabaseException.SERIAL_ERR", "7"); 26 shouldBe("webkitIDBDatabaseException.RECOVERABLE_ERR", "8"); 27 shouldBe("webkitIDBDatabaseException.TRANSIENT_ERR", "9"); 28 shouldBe("webkitIDBDatabaseException.TIMEOUT_ERR", "10") [all...] |
/external/webkit/LayoutTests/fast/dom/Node/script-tests/ |
initial-values.js | 7 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/dom/HTMLFormElement/script-tests/ |
elements-not-in-document.js | 10 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/Source/JavaScriptCore/API/tests/ |
testapi.js | 42 function shouldBe(a, b) 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...] |
/cts/tests/tests/webkitsecurity/assets/ |
location-new-window-no-crash.js | 14 shouldBe("testWindow.location.toString()", "'about:blank'"); 15 shouldBe("testWindow.location.href", "'about:blank'"); 16 shouldBe("testWindow.location.protocol", "'about:'"); 17 shouldBe("testWindow.location.host", "''"); // Firefox throws an exception 18 shouldBe("testWindow.location.hostname", "''"); // Firefox throws an exception 19 shouldBe("testWindow.location.port", "''"); 20 shouldBe("testWindow.location.pathname", "'blank'"); // Firefox returns the empty string 21 shouldBe("testWindow.location.search", "''"); 22 shouldBe("testWindow.location.hash", "''"); 24 shouldBe("testWindow.location.href = 'data:text/plain,b'", "'data:text/plain,b'") [all...] |
number-parsing-crash.js | 7 shouldBe("x.toString()", "0.1111111111111111");
|
regexp-extended-characters-crash.js | 7 shouldBe('new RegExp("[\u00c0-\u1f4d]").toString()', '/[\u00c0-\u1f4d]/.toString()'); 8 shouldBe('new RegExp("[\u3041-\u3094]").toString()', '/[\u3041-\u3094]/.toString()'); 9 shouldBe('new RegExp("[\u4d00-\u4db5]").toString()', '/[\u4d00-\u4db5]/.toString()'); 10 shouldBe('new RegExp("[\u4e00-\u9fa5]").toString()', '/[\u4e00-\u9fa5]/.toString()'); 13 shouldBe('new RegExp("[\u0001-\u1f4d]").toString()', '/[\u0001-\u1f4d]/.toString()');
|
/external/webkit/LayoutTests/fast/dom/Attr/ |
change-id-via-attr-node-value.html | 15 shouldBe('document.getElementById("a")', 'document.body'); 16 shouldBe('document.body.id', '"a"'); 17 shouldBe('document.body.getAttributeNode("id").isId', 'true'); 18 shouldBe('document.body.getAttributeNode("id").textContent', '"a"'); 22 shouldBe('document.getElementById("a")', 'null'); 23 shouldBe('document.getElementById("b")', 'document.body'); 24 shouldBe('document.body.getAttributeNode("id").textContent', '"b"'); 28 shouldBe('document.getElementById("b")', 'null'); 29 shouldBe('document.getElementById("c")', 'document.body'); 30 shouldBe('document.body.getAttributeNode("id").textContent', '"c"') [all...] |
/external/webkit/LayoutTests/fast/events/touch/script-tests/ |
document-create-touch.js | 14 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...] |
/external/webkit/LayoutTests/fast/xpath/4XPath/Core/ |
test_literal_expr.html | 11 shouldBe('document.evaluate(\'""\', document, null, XPathResult.STRING_TYPE, null).stringValue', '""'); 12 shouldBe('document.evaluate(\'"Hi"\', document, null, XPathResult.STRING_TYPE, null).stringValue', '"Hi"'); 13 shouldBe('document.evaluate(\'"NaN"\', document, null, XPathResult.STRING_TYPE, null).stringValue', '"NaN"'); 14 shouldBe('document.evaluate(\'"\u2022 = middle dot"\', document, null, XPathResult.STRING_TYPE, null).stringValue', '"\u2022 = middle dot"'); 15 shouldBe('document.evaluate(\'"0"\', document, null, XPathResult.STRING_TYPE, null).stringValue', '"0"'); 16 shouldBe('document.evaluate(\'"1"\', document, null, XPathResult.STRING_TYPE, null).stringValue', '"1"'); 17 shouldBe('document.evaluate(\'"2"\', document, null, XPathResult.STRING_TYPE, null).stringValue', '"2"'); 18 shouldBe('document.evaluate(\'"3"\', document, null, XPathResult.STRING_TYPE, null).stringValue', '"3"'); 19 shouldBe('document.evaluate(\'"4"\', document, null, XPathResult.STRING_TYPE, null).stringValue', '"4"'); 20 shouldBe('document.evaluate(\'"5"\', document, null, XPathResult.STRING_TYPE, null).stringValue', '"5"') [all...] |
test_node_test.html | 26 shouldBe("nodeInResult(ROOT, result)", "true"); 29 shouldBe("nodeInResult(ROOT, result)", "false"); 30 shouldBe("nodeInResult(CHILD1, result)", "false"); 31 shouldBe("nodeInResult(CHILD3, result)", "true"); 34 shouldBe("nodeInResult(ROOT, result)", "false"); 35 shouldBe("nodeInResult(CHILD1, result)", "false"); 36 shouldBe("nodeInResult(CHILD3, result)", "true"); 39 shouldBe("nodeInResult(ROOT, result)", "true"); 40 shouldBe("nodeInResult(TEXT1, result)", "true"); 43 shouldBe("nodeInResult(ROOT, result)", "false") [all...] |
test_boolean_expr.html | 14 shouldBe('doc.evaluate("3.14 < -4", doc, null, XPathResult.BOOLEAN_TYPE, null).booleanValue', 'false'); 15 shouldBe('doc.evaluate("3.14 <= -4", doc, null, XPathResult.BOOLEAN_TYPE, null).booleanValue', 'false'); 16 shouldBe('doc.evaluate("3.14 > -4", doc, null, XPathResult.BOOLEAN_TYPE, null).booleanValue', 'true'); 17 shouldBe('doc.evaluate("3.14 >= 3.14", doc, null, XPathResult.BOOLEAN_TYPE, null).booleanValue', 'true'); 18 shouldBe('doc.evaluate("number(\'NaN\') < -4", doc, null, XPathResult.BOOLEAN_TYPE, null).booleanValue', 'false'); 19 shouldBe('doc.evaluate("number(\'NaN\') <= -4", doc, null, XPathResult.BOOLEAN_TYPE, null).booleanValue', 'false'); 20 shouldBe('doc.evaluate("number(\'NaN\') > -4", doc, null, XPathResult.BOOLEAN_TYPE, null).booleanValue', 'false'); 21 shouldBe('doc.evaluate("number(\'NaN\') >= 3.14", doc, null, XPathResult.BOOLEAN_TYPE, null).booleanValue', 'false'); 22 shouldBe('doc.evaluate("/root/@num2 <= /root/@num2", doc, null, XPathResult.BOOLEAN_TYPE, null).booleanValue', 'true'); 23 shouldBe('doc.evaluate("/root/@num2 >= /root/@num2", doc, null, XPathResult.BOOLEAN_TYPE, null).booleanValu (…) [all...] |
test_numeric_expr.html | 26 shouldBe('DOM.evaluate("-5 * 2", CHILD1, null, XPathResult.ANY_TYPE, null).numberValue', '-10'); 27 shouldBe('DOM.evaluate("-4 * -2", CHILD1, null, XPathResult.ANY_TYPE, null).numberValue', '8'); 28 shouldBe('DOM.evaluate("0 * 2", CHILD1, null, XPathResult.ANY_TYPE, null).numberValue', '0'); 29 shouldBe('DOM.evaluate("(1 div 0) * (1 div 0)", CHILD1, null, XPathResult.ANY_TYPE, null).numberValue', 'Infinity'); 30 shouldBe('DOM.evaluate("(-1 div 0) * (-1 div 0)", CHILD1, null, XPathResult.ANY_TYPE, null).numberValue', 'Infinity'); 31 shouldBe('DOM.evaluate("(1 div 0) * (-1 div 0)", CHILD1, null, XPathResult.ANY_TYPE, null).numberValue', '-Infinity'); 32 shouldBe('DOM.evaluate("0 div 2", CHILD1, null, XPathResult.ANY_TYPE, null).numberValue', '0'); 33 shouldBe('DOM.evaluate("-5 div 2", CHILD1, null, XPathResult.ANY_TYPE, null).numberValue', '-2.5'); 34 shouldBe('DOM.evaluate("-4 div -2", CHILD1, null, XPathResult.ANY_TYPE, null).numberValue', '2'); 35 shouldBe('DOM.evaluate("0 div 0", CHILD1, null, XPathResult.ANY_TYPE, null).numberValue', 'NaN') [all...] |
test_core_functions.html | 19 shouldBe('DOM.evaluate("last()", CHILD1, null, XPathResult.ANY_TYPE, null).numberValue', '1'); 20 shouldBe('DOM.evaluate("position()", CHILD1, null, XPathResult.ANY_TYPE, null).numberValue', '1'); 21 shouldBe('DOM.evaluate("count(/ROOT | /ROOT/CHILD1)", CHILD1, null, XPathResult.ANY_TYPE, null).numberValue', '2'); 41 shouldBe('DOM.evaluate("local-name(/empty)", CHILD1, null, XPathResult.ANY_TYPE, null).stringValue', '""'); 42 shouldBe('DOM.evaluate("local-name(//f:CHILD3)", CHILD1, nsResolver, XPathResult.ANY_TYPE, null).stringValue', '"CHILD3"'); 43 shouldBe('DOM.evaluate("namespace-uri(/empty)", CHILD1, null, XPathResult.ANY_TYPE, null).stringValue', '""'); 44 shouldBe('DOM.evaluate("namespace-uri(//f:CHILD3)", CHILD1, nsResolver, XPathResult.ANY_TYPE, null).stringValue', '"http://foo.com"'); 45 shouldBe('DOM.evaluate("name(//f:CHILD3)", CHILD1, nsResolver, XPathResult.ANY_TYPE, null).stringValue', '"foo:CHILD3"'); 49 shouldBe('DOM.evaluate("string(//CHILD1)", CHILD1, null, XPathResult.ANY_TYPE, null).stringValue', 'strNodeset3'); 50 shouldBe('DOM.evaluate("concat(//CHILD1, \'3.14\', \'Hi\')", CHILD1, null, XPathResult.ANY_TYPE, null).stri (…) [all...] |
/external/webkit/LayoutTests/fast/dom/Attr/script-tests/ |
access-after-element-destruction.js | 20 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/Geolocation/script-tests/ |
error.js | 18 shouldBe('error.code', 'mockCode'); 19 shouldBe('error.message', 'mockMessage'); 20 shouldBe('error.UNKNOWN_ERROR', 'undefined'); 21 shouldBe('error.PERMISSION_DENIED', '1'); 22 shouldBe('error.POSITION_UNAVAILABLE', '2'); 23 shouldBe('error.TIMEOUT', '3');
|
position-string.js | 17 // shouldBe can't use local variables yet. 19 shouldBe('position.coords.latitude', 'mockLatitude'); 20 shouldBe('position.coords.longitude', 'mockLongitude'); 21 shouldBe('position.coords.accuracy', 'mockAccuracy'); 22 shouldBe('position.toString()', '"[object Geoposition]"'); 23 shouldBe('position.coords.toString()', '"[object Coordinates]"');
|
/external/webkit/LayoutTests/fast/dom/Text/script-tests/ |
replaceWholeText.js | 10 shouldBe("textB.wholeText", "'AB'"); 11 shouldBe("para.textContent", "'ABC'"); 13 shouldBe("textB.wholeText", "'XYZ'"); 14 shouldBe("para.textContent", "'XYZC'");
|
/external/webkit/LayoutTests/storage/domstorage/script-tests/ |
clear.js | 14 shouldBe("storage.length", "0"); 18 shouldBe("storage.length", "2"); 23 shouldBe("storage.length", "0"); 24 shouldBe("storage['FOO']", "undefined"); // FIXME: Wait...shouldn't this be null? 25 shouldBe("storage['BAR']", "undefined"); // ditto
|
/external/webkit/LayoutTests/fast/dom/CSSStyleDeclaration/script-tests/ |
css-properties-case-sensitive.js | 11 shouldBe("element.style.zIndex", "'1'"); 18 shouldBe("element.style.cssZIndex", "'1'"); 19 shouldBe("element.style.CssZIndex", "'1'"); 27 shouldBe("element.style.pixelZIndex", "1"); 28 shouldBe("element.style.PixelZIndex", "1"); 36 shouldBe("element.style.posZIndex", "1"); 37 shouldBe("element.style.PosZIndex", "1");
|
/external/webkit/LayoutTests/fast/dom/TreeWalker/script-tests/ |
traversal-reject.js | 27 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...] |