Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(526)

Unified Diff: webkit/data/layout_tests/chrome/fast/dom/typecheck.html

Issue 55025: Remove tests that have been upstreamed. Update test_expectations list... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: webkit/data/layout_tests/chrome/fast/dom/typecheck.html
===================================================================
--- webkit/data/layout_tests/chrome/fast/dom/typecheck.html (revision 12664)
+++ webkit/data/layout_tests/chrome/fast/dom/typecheck.html (working copy)
@@ -1,99 +0,0 @@
-<html>
- <head></head>
- <body>
-
-<p>
-This test checks the behavior of dom operations when called on non-dom
-or incompatible receivers with non-dom or incompatible arguments.
-</p>
-
- <script>
-if (window.layoutTestController) layoutTestController.dumpAsText();
-
-function addResult(str) {
- var option = document.createElement("option");
- option.innerHTML = str;
- document.getElementById("results").appendChild(option);
-}
-
-function trySuspect(name, fun) {
- try {
- result = fun();
- document.write(name + " = " + result + "<br />");
- } catch (e) {
- document.write(name + ": " + e + "<br />");
- }
-}
-
-var aDOMImplementation = document.implementation;
-var aSelect = document.createElement("select");
-var anOption = document.createElement("option");
-
-document.write("DOMImplementation: " + aDOMImplementation + "<br />");
-var aNode = document.createElement("div");
-var aSecondNode = document.createElement("div");
-aNode.appendChild(aSecondNode);
-
-trySuspect("Node::appendChild(DOMImplementation)", function () {
- return aNode.appendChild(aDOMImplementation);
-});
-
-trySuspect("Node::appendChild(String)", function () {
- return aNode.appendChild("knort");
-});
-
-trySuspect("Node::appendChild(undefined)", function () {
- return aNode.appendChild(void 0);
-});
-
-trySuspect("Node::isSameNode(DOMImplementation)", function () {
- return aNode.isSameNode(aDOMImplementation);
-});
-
-trySuspect("Node::isSameNode(String)", function () {
- return aNode.isSameNode("foo");
-});
-
-trySuspect("Node::isSameNode(undefined)", function () {
- return aNode.isSameNode(void 0);
-});
-
-trySuspect("Node::lookupPrefix(DOMImplementation)", function () {
- return aNode.lookupPrefix(aDOMImplementation);
-});
-
-trySuspect("Node::lookupPrefix(undefined)", function () {
- return aNode.lookupPrefix(void 0);
-});
-
-trySuspect("Node::cloneNode(DOMImplementation)", function () {
- return aNode.cloneNode(aDOMImplementation);
-});
-
-trySuspect("Select::add(DOMImplementation, DOMImplementation)", function () {
- return aSelect.add(aDOMImplementation, aDOMImplementation);
-});
-
-trySuspect("Select::add(DOMImplementation, Option)", function () {
- return aSelect.add(aDOMImplementation, anOption);
-});
-
-trySuspect("Select::add(Option, DOMImplementation)", function () {
- return aSelect.add(anOption, aDOMImplementation);
-});
-
-trySuspect("Select::add(undefined, undefined)", function () {
- return aSelect.add(void 0, void 0);
-});
-
-trySuspect("Select::add(undefined, Option)", function () {
- return aSelect.add(void 0, anOption);
-});
-
-trySuspect("Select::add(Option, undefined)", function () {
- return aSelect.add(anOption, void 0);
-});
-
- </script>
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698