[SCM] WebKit Debian packaging branch, webkit-1.3, updated. upstream/1.3.7-4207-g178b198

chang.shu at nokia.com chang.shu at nokia.com
Sun Feb 20 23:44:01 UTC 2011


The following commit has been merged in the webkit-1.3 branch:
commit b38a60bc58744c316798da3d1f637ca2cf9fcb68
Author: chang.shu at nokia.com <chang.shu at nokia.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Mon Jan 24 17:40:37 2011 +0000

    2011-01-24  Chang Shu  <chang.shu at nokia.com>
    
            Reviewed by Darin Adler.
    
            Move contentEditable related test cases to the right place as they are DOM
            related instead of editing related.
            https://bugs.webkit.org/show_bug.cgi?id=53010
    
            * editing/editability: Removed.
            * editing/editability/attr-empty-string-expected.txt: Removed.
            * editing/editability/attr-empty-string.html: Removed.
            * editing/editability/attr-false-string-expected.txt: Removed.
            * editing/editability/attr-false-string.html: Removed.
            * editing/editability/attr-invalid-string-expected.txt: Removed.
            * editing/editability/attr-invalid-string.html: Removed.
            * editing/editability/attr-missing-ancestor-false-expected.txt: Removed.
            * editing/editability/attr-missing-ancestor-false.html: Removed.
            * editing/editability/attr-missing-ancestor-true-expected.txt: Removed.
            * editing/editability/attr-missing-ancestor-true.html: Removed.
            * editing/editability/attr-missing-parent-ancestor-missing-expected.txt: Removed.
            * editing/editability/attr-missing-parent-ancestor-missing.html: Removed.
            * editing/editability/attr-missing-parent-false-expected.txt: Removed.
            * editing/editability/attr-missing-parent-false.html: Removed.
            * editing/editability/attr-missing-parent-true-expected.txt: Removed.
            * editing/editability/attr-missing-parent-true.html: Removed.
            * editing/editability/attr-true-string-expected.txt: Removed.
            * editing/editability/attr-true-string.html: Removed.
            * editing/editability/set-false-expected.txt: Removed.
            * editing/editability/set-false.html: Removed.
            * editing/editability/set-inherit-parent-false-expected.txt: Removed.
            * editing/editability/set-inherit-parent-false.html: Removed.
            * editing/editability/set-inherit-parent-true-expected.txt: Removed.
            * editing/editability/set-inherit-parent-true.html: Removed.
            * editing/editability/set-invalid-value-expected.txt: Removed.
            * editing/editability/set-invalid-value.html: Removed.
            * editing/editability/set-true-expected.txt: Removed.
            * editing/editability/set-true.html: Removed.
            * editing/editability/set-value-caseinsensitive-expected.txt: Removed.
            * editing/editability/set-value-caseinsensitive.html: Removed.
            * fast/dom/HTMLElement/attr-empty-string-expected.txt: Copied from LayoutTests/editing/editability/attr-empty-string-expected.txt.
            * fast/dom/HTMLElement/attr-empty-string.html: Copied from LayoutTests/editing/editability/attr-empty-string.html.
            * fast/dom/HTMLElement/attr-false-string-expected.txt: Copied from LayoutTests/editing/editability/attr-false-string-expected.txt.
            * fast/dom/HTMLElement/attr-false-string.html: Copied from LayoutTests/editing/editability/attr-false-string.html.
            * fast/dom/HTMLElement/attr-invalid-string-expected.txt: Copied from LayoutTests/editing/editability/attr-invalid-string-expected.txt.
            * fast/dom/HTMLElement/attr-invalid-string.html: Copied from LayoutTests/editing/editability/attr-invalid-string.html.
            * fast/dom/HTMLElement/attr-missing-ancestor-false-expected.txt: Copied from LayoutTests/editing/editability/attr-missing-ancestor-false-expected.txt.
            * fast/dom/HTMLElement/attr-missing-ancestor-false.html: Copied from LayoutTests/editing/editability/attr-missing-ancestor-false.html.
            * fast/dom/HTMLElement/attr-missing-ancestor-true-expected.txt: Copied from LayoutTests/editing/editability/attr-missing-ancestor-true-expected.txt.
            * fast/dom/HTMLElement/attr-missing-ancestor-true.html: Copied from LayoutTests/editing/editability/attr-missing-ancestor-true.html.
            * fast/dom/HTMLElement/attr-missing-parent-ancestor-missing-expected.txt: Copied from LayoutTests/editing/editability/attr-missing-parent-ancestor-missing-expected.txt.
            * fast/dom/HTMLElement/attr-missing-parent-ancestor-missing.html: Copied from LayoutTests/editing/editability/attr-missing-parent-ancestor-missing.html.
            * fast/dom/HTMLElement/attr-missing-parent-false-expected.txt: Copied from LayoutTests/editing/editability/attr-missing-parent-false-expected.txt.
            * fast/dom/HTMLElement/attr-missing-parent-false.html: Copied from LayoutTests/editing/editability/attr-missing-parent-false.html.
            * fast/dom/HTMLElement/attr-missing-parent-true-expected.txt: Copied from LayoutTests/editing/editability/attr-missing-parent-true-expected.txt.
            * fast/dom/HTMLElement/attr-missing-parent-true.html: Copied from LayoutTests/editing/editability/attr-missing-parent-true.html.
            * fast/dom/HTMLElement/attr-true-string-expected.txt: Copied from LayoutTests/editing/editability/attr-true-string-expected.txt.
            * fast/dom/HTMLElement/attr-true-string.html: Copied from LayoutTests/editing/editability/attr-true-string.html.
            * fast/dom/HTMLElement/set-false-expected.txt: Copied from LayoutTests/editing/editability/set-false-expected.txt.
            * fast/dom/HTMLElement/set-false.html: Copied from LayoutTests/editing/editability/set-false.html.
            * fast/dom/HTMLElement/set-inherit-parent-false-expected.txt: Copied from LayoutTests/editing/editability/set-inherit-parent-false-expected.txt.
            * fast/dom/HTMLElement/set-inherit-parent-false.html: Copied from LayoutTests/editing/editability/set-inherit-parent-false.html.
            * fast/dom/HTMLElement/set-inherit-parent-true-expected.txt: Copied from LayoutTests/editing/editability/set-inherit-parent-true-expected.txt.
            * fast/dom/HTMLElement/set-inherit-parent-true.html: Copied from LayoutTests/editing/editability/set-inherit-parent-true.html.
            * fast/dom/HTMLElement/set-invalid-value-expected.txt: Copied from LayoutTests/editing/editability/set-invalid-value-expected.txt.
            * fast/dom/HTMLElement/set-invalid-value.html: Copied from LayoutTests/editing/editability/set-invalid-value.html.
            * fast/dom/HTMLElement/set-true-expected.txt: Copied from LayoutTests/editing/editability/set-true-expected.txt.
            * fast/dom/HTMLElement/set-true.html: Copied from LayoutTests/editing/editability/set-true.html.
            * fast/dom/HTMLElement/set-value-caseinsensitive-expected.txt: Copied from LayoutTests/editing/editability/set-value-caseinsensitive-expected.txt.
            * fast/dom/HTMLElement/set-value-caseinsensitive.html: Copied from LayoutTests/editing/editability/set-value-caseinsensitive.html.
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76528 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog
index e3ab0a9..8efa789 100644
--- a/LayoutTests/ChangeLog
+++ b/LayoutTests/ChangeLog
@@ -1,3 +1,73 @@
+2011-01-24  Chang Shu  <chang.shu at nokia.com>
+
+        Reviewed by Darin Adler.
+
+        Move contentEditable related test cases to the right place as they are DOM
+        related instead of editing related.
+        https://bugs.webkit.org/show_bug.cgi?id=53010
+
+        * editing/editability: Removed.
+        * editing/editability/attr-empty-string-expected.txt: Removed.
+        * editing/editability/attr-empty-string.html: Removed.
+        * editing/editability/attr-false-string-expected.txt: Removed.
+        * editing/editability/attr-false-string.html: Removed.
+        * editing/editability/attr-invalid-string-expected.txt: Removed.
+        * editing/editability/attr-invalid-string.html: Removed.
+        * editing/editability/attr-missing-ancestor-false-expected.txt: Removed.
+        * editing/editability/attr-missing-ancestor-false.html: Removed.
+        * editing/editability/attr-missing-ancestor-true-expected.txt: Removed.
+        * editing/editability/attr-missing-ancestor-true.html: Removed.
+        * editing/editability/attr-missing-parent-ancestor-missing-expected.txt: Removed.
+        * editing/editability/attr-missing-parent-ancestor-missing.html: Removed.
+        * editing/editability/attr-missing-parent-false-expected.txt: Removed.
+        * editing/editability/attr-missing-parent-false.html: Removed.
+        * editing/editability/attr-missing-parent-true-expected.txt: Removed.
+        * editing/editability/attr-missing-parent-true.html: Removed.
+        * editing/editability/attr-true-string-expected.txt: Removed.
+        * editing/editability/attr-true-string.html: Removed.
+        * editing/editability/set-false-expected.txt: Removed.
+        * editing/editability/set-false.html: Removed.
+        * editing/editability/set-inherit-parent-false-expected.txt: Removed.
+        * editing/editability/set-inherit-parent-false.html: Removed.
+        * editing/editability/set-inherit-parent-true-expected.txt: Removed.
+        * editing/editability/set-inherit-parent-true.html: Removed.
+        * editing/editability/set-invalid-value-expected.txt: Removed.
+        * editing/editability/set-invalid-value.html: Removed.
+        * editing/editability/set-true-expected.txt: Removed.
+        * editing/editability/set-true.html: Removed.
+        * editing/editability/set-value-caseinsensitive-expected.txt: Removed.
+        * editing/editability/set-value-caseinsensitive.html: Removed.
+        * fast/dom/HTMLElement/attr-empty-string-expected.txt: Copied from LayoutTests/editing/editability/attr-empty-string-expected.txt.
+        * fast/dom/HTMLElement/attr-empty-string.html: Copied from LayoutTests/editing/editability/attr-empty-string.html.
+        * fast/dom/HTMLElement/attr-false-string-expected.txt: Copied from LayoutTests/editing/editability/attr-false-string-expected.txt.
+        * fast/dom/HTMLElement/attr-false-string.html: Copied from LayoutTests/editing/editability/attr-false-string.html.
+        * fast/dom/HTMLElement/attr-invalid-string-expected.txt: Copied from LayoutTests/editing/editability/attr-invalid-string-expected.txt.
+        * fast/dom/HTMLElement/attr-invalid-string.html: Copied from LayoutTests/editing/editability/attr-invalid-string.html.
+        * fast/dom/HTMLElement/attr-missing-ancestor-false-expected.txt: Copied from LayoutTests/editing/editability/attr-missing-ancestor-false-expected.txt.
+        * fast/dom/HTMLElement/attr-missing-ancestor-false.html: Copied from LayoutTests/editing/editability/attr-missing-ancestor-false.html.
+        * fast/dom/HTMLElement/attr-missing-ancestor-true-expected.txt: Copied from LayoutTests/editing/editability/attr-missing-ancestor-true-expected.txt.
+        * fast/dom/HTMLElement/attr-missing-ancestor-true.html: Copied from LayoutTests/editing/editability/attr-missing-ancestor-true.html.
+        * fast/dom/HTMLElement/attr-missing-parent-ancestor-missing-expected.txt: Copied from LayoutTests/editing/editability/attr-missing-parent-ancestor-missing-expected.txt.
+        * fast/dom/HTMLElement/attr-missing-parent-ancestor-missing.html: Copied from LayoutTests/editing/editability/attr-missing-parent-ancestor-missing.html.
+        * fast/dom/HTMLElement/attr-missing-parent-false-expected.txt: Copied from LayoutTests/editing/editability/attr-missing-parent-false-expected.txt.
+        * fast/dom/HTMLElement/attr-missing-parent-false.html: Copied from LayoutTests/editing/editability/attr-missing-parent-false.html.
+        * fast/dom/HTMLElement/attr-missing-parent-true-expected.txt: Copied from LayoutTests/editing/editability/attr-missing-parent-true-expected.txt.
+        * fast/dom/HTMLElement/attr-missing-parent-true.html: Copied from LayoutTests/editing/editability/attr-missing-parent-true.html.
+        * fast/dom/HTMLElement/attr-true-string-expected.txt: Copied from LayoutTests/editing/editability/attr-true-string-expected.txt.
+        * fast/dom/HTMLElement/attr-true-string.html: Copied from LayoutTests/editing/editability/attr-true-string.html.
+        * fast/dom/HTMLElement/set-false-expected.txt: Copied from LayoutTests/editing/editability/set-false-expected.txt.
+        * fast/dom/HTMLElement/set-false.html: Copied from LayoutTests/editing/editability/set-false.html.
+        * fast/dom/HTMLElement/set-inherit-parent-false-expected.txt: Copied from LayoutTests/editing/editability/set-inherit-parent-false-expected.txt.
+        * fast/dom/HTMLElement/set-inherit-parent-false.html: Copied from LayoutTests/editing/editability/set-inherit-parent-false.html.
+        * fast/dom/HTMLElement/set-inherit-parent-true-expected.txt: Copied from LayoutTests/editing/editability/set-inherit-parent-true-expected.txt.
+        * fast/dom/HTMLElement/set-inherit-parent-true.html: Copied from LayoutTests/editing/editability/set-inherit-parent-true.html.
+        * fast/dom/HTMLElement/set-invalid-value-expected.txt: Copied from LayoutTests/editing/editability/set-invalid-value-expected.txt.
+        * fast/dom/HTMLElement/set-invalid-value.html: Copied from LayoutTests/editing/editability/set-invalid-value.html.
+        * fast/dom/HTMLElement/set-true-expected.txt: Copied from LayoutTests/editing/editability/set-true-expected.txt.
+        * fast/dom/HTMLElement/set-true.html: Copied from LayoutTests/editing/editability/set-true.html.
+        * fast/dom/HTMLElement/set-value-caseinsensitive-expected.txt: Copied from LayoutTests/editing/editability/set-value-caseinsensitive-expected.txt.
+        * fast/dom/HTMLElement/set-value-caseinsensitive.html: Copied from LayoutTests/editing/editability/set-value-caseinsensitive.html.
+
 2011-01-24  Sam Weinig  <sam at webkit.org>
 
         Add editing/inserting/insert-composition-whitespace.html to the windows
diff --git a/LayoutTests/editing/editability/attr-empty-string.html b/LayoutTests/editing/editability/attr-empty-string.html
deleted file mode 100644
index 0255336..0000000
--- a/LayoutTests/editing/editability/attr-empty-string.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<html>
-<head>
-<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
-<script src="../../fast/js/resources/js-test-pre.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></p>
-<div id="result"></div>
-<div id="div" contentEditable=""></div>
-<script>
-description('When contentEditable attribute is empty string, element.contentEditable returns "true" and the element is editable.')
-
-shouldBe('document.getElementById("div").getAttribute("contentEditable")','""');
-shouldBe('document.getElementById("div").contentEditable', '"true"');
-shouldBe('document.getElementById("div").isContentEditable', 'true');
-shouldBe('window.getComputedStyle(div, "").getPropertyValue("-webkit-user-modify")', '"read-write"');
-
-document.getElementById("div").style.display= 'none';
-
-window.successfullyParsed = true;
-</script>
-<script src="../../fast/js/resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/editing/editability/attr-false-string.html b/LayoutTests/editing/editability/attr-false-string.html
deleted file mode 100644
index 8d6710d..0000000
--- a/LayoutTests/editing/editability/attr-false-string.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<html>
-<head>
-<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
-<script src="../../fast/js/resources/js-test-pre.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></p>
-<div id="result"></div>
-<div id="div" contentEditable="false"></div>
-<script>
-description('When contentEditable attribute is "false" string, element.contentEditable returns "false" and the element is NOT editable.')
-
-shouldBe('document.getElementById("div").getAttribute("contentEditable")','"false"');
-shouldBe('document.getElementById("div").contentEditable', '"false"');
-shouldBe('document.getElementById("div").isContentEditable', 'false');
-shouldBe('window.getComputedStyle(div, "").getPropertyValue("-webkit-user-modify")', '"read-only"');
-
-document.getElementById("div").style.display= 'none';
-
-window.successfullyParsed = true;
-</script>
-<script src="../../fast/js/resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/editing/editability/attr-invalid-string.html b/LayoutTests/editing/editability/attr-invalid-string.html
deleted file mode 100644
index a505f58..0000000
--- a/LayoutTests/editing/editability/attr-invalid-string.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<html>
-<head>
-<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
-<script src="../../fast/js/resources/js-test-pre.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></p>
-<div id="result"></div>
-<div id="div" contentEditable="abc"></div>
-<script>
-description('When contentEditable attribute is invalid string, element.contentEditable returns "inherit".')
-
-shouldBe('document.getElementById("div").getAttribute("contentEditable")','"abc"');
-shouldBe('document.getElementById("div").contentEditable', '"inherit"');
-shouldBe('document.getElementById("div").isContentEditable', 'false');
-shouldBe('window.getComputedStyle(div, "").getPropertyValue("-webkit-user-modify")', '"read-only"');
-
-document.getElementById("div").style.display= 'none';
-
-window.successfullyParsed = true;
-</script>
-<script src="../../fast/js/resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/editing/editability/attr-missing-ancestor-false.html b/LayoutTests/editing/editability/attr-missing-ancestor-false.html
deleted file mode 100644
index e95b52a..0000000
--- a/LayoutTests/editing/editability/attr-missing-ancestor-false.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<html>
-<head>
-<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
-<script src="../../fast/js/resources/js-test-pre.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></p>
-<div id="result"></div>
-<div id="div" contentEditable="false">
-  <div>
-    <div>
-      <p id="p"></p>
-    </div>
-  </div>
-</div>
-<script>
-description('When contentEditable is missing, it maps to "inherit" state and the element is NOT editable if its nearest ancestor is NOT.')
-
-shouldBe('document.getElementById("p").hasAttribute("contentEditable")', 'false');
-shouldBe('document.getElementById("p").contentEditable', '"inherit"');
-shouldBe('document.getElementById("p").isContentEditable', 'false');
-shouldBe('window.getComputedStyle(p, "").getPropertyValue("-webkit-user-modify")', '"read-only"');
-
-document.getElementById("div").style.display= 'none';
-
-window.successfullyParsed = true;
-</script>
-<script src="../../fast/js/resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/editing/editability/attr-missing-ancestor-true.html b/LayoutTests/editing/editability/attr-missing-ancestor-true.html
deleted file mode 100644
index 39ddbb6..0000000
--- a/LayoutTests/editing/editability/attr-missing-ancestor-true.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<html>
-<head>
-<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
-<script src="../../fast/js/resources/js-test-pre.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></p>
-<div id="result"></div>
-<div id="div" contentEditable="true">
-  <div>
-    <div>
-      <p id="p"></p>
-    </div>
-  </div>
-</div>
-</div>
-<script>
-description('When contentEditable is missing, it maps to "inherit" state and the element is editable if its nearest ancestor is.')
-
-shouldBe('document.getElementById("p").hasAttribute("contentEditable")','false');
-shouldBe('document.getElementById("p").contentEditable', '"inherit"');
-shouldBe('document.getElementById("p").isContentEditable', 'true');
-shouldBe('window.getComputedStyle(p, "").getPropertyValue("-webkit-user-modify")', '"read-write"');
-
-document.getElementById("div").style.display= 'none';
-
-window.successfullyParsed = true;
-</script>
-<script src="../../fast/js/resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/editing/editability/attr-missing-parent-ancestor-missing.html b/LayoutTests/editing/editability/attr-missing-parent-ancestor-missing.html
deleted file mode 100644
index f32e2c5..0000000
--- a/LayoutTests/editing/editability/attr-missing-parent-ancestor-missing.html
+++ /dev/null
@@ -1,31 +0,0 @@
-<html>
-<head>
-<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
-<script src="../../fast/js/resources/js-test-pre.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></p>
-<div id="result"></div>
-<div id="div">
-  <div>
-    <div>
-      <p id="p"></p>
-    </div>
-  </div>
-</div>
-<script>
-description('When contentEditable is missing, it maps to "inherit" state and the element is NOT editable if its parent/ancestor\'s contentEditable is also missing.')
-
-shouldBe('document.getElementById("p").hasAttribute("contentEditable")','false');
-shouldBe('document.getElementById("p").contentEditable', '"inherit"');
-shouldBe('document.getElementById("p").isContentEditable', 'false');
-shouldBe('window.getComputedStyle(p, "").getPropertyValue("-webkit-user-modify")', '"read-only"');
-
-document.getElementById("div").style.display= 'none';
-
-window.successfullyParsed = true;
-</script>
-<script src="../../fast/js/resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/editing/editability/attr-missing-parent-false.html b/LayoutTests/editing/editability/attr-missing-parent-false.html
deleted file mode 100644
index 4bf6cd1..0000000
--- a/LayoutTests/editing/editability/attr-missing-parent-false.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<html>
-<head>
-<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
-<script src="../../fast/js/resources/js-test-pre.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></p>
-<div id="result"></div>
-<div id="div" contentEditable="false">
-    <p id="p"></p>
-</div>
-<script>
-description('When contentEditable is missing, it maps to "inherit" state and the element is NOT editable if its parent is NOT.')
-
-shouldBe('document.getElementById("p").hasAttribute("contentEditable")','false');
-shouldBe('document.getElementById("p").contentEditable', '"inherit"');
-shouldBe('document.getElementById("p").isContentEditable', 'false');
-shouldBe('window.getComputedStyle(p, "").getPropertyValue("-webkit-user-modify")', '"read-only"');
-
-document.getElementById("div").style.display= 'none';
-
-window.successfullyParsed = true;
-</script>
-<script src="../../fast/js/resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/editing/editability/attr-missing-parent-true.html b/LayoutTests/editing/editability/attr-missing-parent-true.html
deleted file mode 100644
index 341c5f0..0000000
--- a/LayoutTests/editing/editability/attr-missing-parent-true.html
+++ /dev/null
@@ -1,27 +0,0 @@
-<html>
-<head>
-<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
-<script src="../../fast/js/resources/js-test-pre.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></p>
-<div id="result"></div>
-<div id="div" contentEditable="true">
-    <p id="p"></p>
-</div>
-<script>
-description('When contentEditable is missing, it maps to "inherit" state and the element is editable if its parent is.')
-
-shouldBe('document.getElementById("p").hasAttribute("contentEditable")','false');
-shouldBe('document.getElementById("p").contentEditable', '"inherit"');
-shouldBe('document.getElementById("p").isContentEditable', 'true');
-shouldBe('window.getComputedStyle(p, "").getPropertyValue("-webkit-user-modify")', '"read-write"');
-
-document.getElementById("div").style.display= 'none';
-
-window.successfullyParsed = true;
-</script>
-<script src="../../fast/js/resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/editing/editability/attr-true-string.html b/LayoutTests/editing/editability/attr-true-string.html
deleted file mode 100644
index fa9521a..0000000
--- a/LayoutTests/editing/editability/attr-true-string.html
+++ /dev/null
@@ -1,25 +0,0 @@
-<html>
-<head>
-<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
-<script src="../../fast/js/resources/js-test-pre.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></p>
-<div id="result"></div>
-<div id="div" contentEditable="true"></div>
-<script>
-description('When contentEditable attribute is "true" string, element.contentEditable returns "true" and the element is editable.')
-
-shouldBe('document.getElementById("div").getAttribute("contentEditable")','"true"');
-shouldBe('document.getElementById("div").contentEditable', '"true"');
-shouldBe('document.getElementById("div").isContentEditable', 'true');
-shouldBe('window.getComputedStyle(div, "").getPropertyValue("-webkit-user-modify")', '"read-write"');
-
-document.getElementById("div").style.display= 'none';
-
-window.successfullyParsed = true;
-</script>
-<script src="../../fast/js/resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/editing/editability/set-false.html b/LayoutTests/editing/editability/set-false.html
deleted file mode 100644
index fcc0084..0000000
--- a/LayoutTests/editing/editability/set-false.html
+++ /dev/null
@@ -1,37 +0,0 @@
-<html>
-<head>
-<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
-<script src="../../fast/js/resources/js-test-pre.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></p>
-<div id="result"></div>
-<div id="div1" contenteditable="true"></div>
-<div id="div2" contenteditable="true">
-    <p id="p2"></p>
-</div>
-<script>
-description('When contentEditable is set to "false" string from "true" or inherit, element.contentEditable returns "false" and the element is NOT editable.')
-
-document.getElementById("div1").contentEditable = "false";
-document.getElementById("p2").contentEditable = "false";
-
-shouldBe('document.getElementById("div1").getAttribute("contentEditable")','"false"');
-shouldBe('document.getElementById("div1").contentEditable', '"false"');
-shouldBe('document.getElementById("div1").isContentEditable', 'false');
-debug("FIXME: setContentEditable with true/false/inherit string is not working properly. https://bugs.webkit.org/show_bug.cgi?id=52058");
-shouldBe('window.getComputedStyle(div1, "").getPropertyValue("-webkit-user-modify")', '"read-only"');
-
-shouldBe('document.getElementById("p2").contentEditable', '"false"');
-shouldBe('document.getElementById("p2").isContentEditable', 'false');
-shouldBe('window.getComputedStyle(p2, "").getPropertyValue("-webkit-user-modify")', '"read-only"');
-
-document.getElementById("div1").style.display= 'none';
-document.getElementById("div2").style.display= 'none';
-
-window.successfullyParsed = true;
-</script>
-<script src="../../fast/js/resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/editing/editability/set-inherit-parent-false.html b/LayoutTests/editing/editability/set-inherit-parent-false.html
deleted file mode 100644
index 1f220b5..0000000
--- a/LayoutTests/editing/editability/set-inherit-parent-false.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<html>
-<head>
-<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
-<script src="../../fast/js/resources/js-test-pre.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></p>
-<div id="result"></div>
-<div id="div" contenteditable="false">
-    <p id="p" contenteditable="true"></p>
-</div>
-<script>
-description('When contentEditable is set to "inherit", the attribute must be removed and element.contentEditable should return "inherit".')
-
-document.getElementById("p").contentEditable = "inherit";
-
-shouldBe('document.getElementById("p").hasAttribute("contentEditable")','false');
-shouldBe('document.getElementById("p").contentEditable', '"inherit"');
-shouldBe('document.getElementById("p").isContentEditable', 'false');
-debug("FIXME: setContentEditable with true/false/inherit string is not working properly. https://bugs.webkit.org/show_bug.cgi?id=52058");
-shouldBe('window.getComputedStyle(p, "").getPropertyValue("-webkit-user-modify")', '"read-only"');
-
-document.getElementById("div").style.display= 'none';
-
-window.successfullyParsed = true;
-</script>
-<script src="../../fast/js/resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/editing/editability/set-inherit-parent-true.html b/LayoutTests/editing/editability/set-inherit-parent-true.html
deleted file mode 100644
index 98c57f7..0000000
--- a/LayoutTests/editing/editability/set-inherit-parent-true.html
+++ /dev/null
@@ -1,30 +0,0 @@
-<html>
-<head>
-<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
-<script src="../../fast/js/resources/js-test-pre.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></p>
-<div id="result"></div>
-<div id="div" contenteditable="true">
-    <p id="p" contenteditable="false"></p>
-</div>
-<script>
-description('When contentEditable is set to "inherit", the attribute must be removed and element.contentEditable should return "inherit".')
-
-document.getElementById("p").contentEditable = "inherit";
-
-shouldBe('document.getElementById("p").hasAttribute("contentEditable")','false');
-shouldBe('document.getElementById("p").contentEditable', '"inherit"');
-shouldBe('document.getElementById("p").isContentEditable', 'true');
-debug("FIXME: setContentEditable with true/false/inherit string is not working properly. https://bugs.webkit.org/show_bug.cgi?id=52058");
-shouldBe('window.getComputedStyle(p, "").getPropertyValue("-webkit-user-modify")', '"read-write"');
-
-document.getElementById("div").style.display= 'none';
-
-window.successfullyParsed = true;
-</script>
-<script src="../../fast/js/resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/editing/editability/set-invalid-value.html b/LayoutTests/editing/editability/set-invalid-value.html
deleted file mode 100644
index 381d457..0000000
--- a/LayoutTests/editing/editability/set-invalid-value.html
+++ /dev/null
@@ -1,32 +0,0 @@
-<html>
-<head>
-<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
-<script src="../../fast/js/resources/js-test-pre.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></p>
-<div id="result"></div>
-<div id="div" contenteditable="true"></div>
-<script>
-description('When contentEditable is set to invalid string, SYNTAX_ERR exception (code: 12) must be raised.')
-
-shouldThrow("document.getElementById('div').contentEditable = 'abc'", '"Error: SYNTAX_ERR: DOM Exception 12"');
-shouldBe('document.getElementById("div").getAttribute("contentEditable")','"true"');
-shouldBe('document.getElementById("div").contentEditable', '"true"');
-shouldBe('document.getElementById("div").isContentEditable', 'true');
-shouldBe('window.getComputedStyle(div, "").getPropertyValue("-webkit-user-modify")', '"read-write"');
-
-shouldThrow("document.getElementById('div').contentEditable = ''", '"Error: SYNTAX_ERR: DOM Exception 12"');
-shouldBe('document.getElementById("div").getAttribute("contentEditable")','"true"');
-shouldBe('document.getElementById("div").contentEditable', '"true"');
-shouldBe('document.getElementById("div").isContentEditable', 'true');
-shouldBe('window.getComputedStyle(div, "").getPropertyValue("-webkit-user-modify")', '"read-write"');
-
-document.getElementById("div").style.display= 'none';
-
-window.successfullyParsed = true;
-</script>
-<script src="../../fast/js/resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/editing/editability/set-true.html b/LayoutTests/editing/editability/set-true.html
deleted file mode 100644
index f11944f..0000000
--- a/LayoutTests/editing/editability/set-true.html
+++ /dev/null
@@ -1,38 +0,0 @@
-<html>
-<head>
-<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
-<script src="../../fast/js/resources/js-test-pre.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></p>
-<div id="result"></div>
-<div id="div1" contenteditable="false"></div>
-<div id="div2" contenteditable="false">
-    <p id="p2"></p>
-</div>
-<script>
-description('When contentEditable is set to "true" string from "false" or inherit, element.contentEditable returns "true" and the element is editable.')
-
-document.getElementById("div1").contentEditable = "true";
-document.getElementById("p2").contentEditable = "true";
-
-shouldBe('document.getElementById("div1").getAttribute("contentEditable")','"true"');
-shouldBe('document.getElementById("div1").contentEditable', '"true"');
-shouldBe('document.getElementById("div1").isContentEditable', 'true');
-debug("FIXME: setContentEditable with true/false/inherit string is not working properly. https://bugs.webkit.org/show_bug.cgi?id=52058");
-shouldBe('window.getComputedStyle(div1, "").getPropertyValue("-webkit-user-modify")', '"read-write"');
-
-shouldBe('document.getElementById("p2").getAttribute("contentEditable")','"true"');
-shouldBe('document.getElementById("p2").contentEditable', '"true"');
-shouldBe('document.getElementById("p2").isContentEditable', 'true');
-shouldBe('window.getComputedStyle(p2, "").getPropertyValue("-webkit-user-modify")', '"read-write"');
-
-document.getElementById("div1").style.display= 'none';
-document.getElementById("div2").style.display= 'none';
-
-window.successfullyParsed = true;
-</script>
-<script src="../../fast/js/resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/editing/editability/set-value-caseinsensitive.html b/LayoutTests/editing/editability/set-value-caseinsensitive.html
deleted file mode 100644
index 6029066..0000000
--- a/LayoutTests/editing/editability/set-value-caseinsensitive.html
+++ /dev/null
@@ -1,46 +0,0 @@
-<html>
-<head>
-<link rel="stylesheet" href="../../fast/js/resources/js-test-style.css">
-<script src="../../fast/js/resources/js-test-pre.js"></script>
-</head>
-<body>
-<p id="description"></p>
-<div id="console"></p>
-<div id="result"></div>
-<div id="div1" contenteditable="false"></div>
-<p id="p1" contenteditable="true"></p>
-<div id="div2" contenteditable="true">
-    <p id="p2" contenteditable="false"></p>
-</div>
-<script>
-description('When contentEditable is set to a new value, the new value can be case-insensitive.')
-
-document.getElementById("div1").contentEditable = "TRue";
-document.getElementById("p1").contentEditable = "faLSE";
-document.getElementById("p2").contentEditable = "inHERIT";
-
-shouldBe('document.getElementById("div1").getAttribute("contentEditable")','"true"');
-shouldBe('document.getElementById("div1").contentEditable', '"true"');
-shouldBe('document.getElementById("div1").isContentEditable', 'true');
-debug("FIXME: isContentEditable is not working properly. Related to https://bugs.webkit.org/show_bug.cgi?id=52058");
-shouldBe('window.getComputedStyle(div1, "").getPropertyValue("-webkit-user-modify")', '"read-write"');
-
-shouldBe('document.getElementById("p1").getAttribute("contentEditable")','"false"');
-shouldBe('document.getElementById("p1").contentEditable', '"false"');
-shouldBe('document.getElementById("p1").isContentEditable', 'false');
-shouldBe('window.getComputedStyle(p1, "").getPropertyValue("-webkit-user-modify")', '"read-only"');
-
-shouldBe('document.getElementById("p2").hasAttribute("contentEditable")','false');
-shouldBe('document.getElementById("p2").contentEditable', '"inherit"');
-shouldBe('document.getElementById("p2").isContentEditable', 'true');
-shouldBe('window.getComputedStyle(p2, "").getPropertyValue("-webkit-user-modify")', '"read-write"');
-
-document.getElementById("div1").style.display= 'none';
-document.getElementById("p1").style.display= 'none';
-document.getElementById("div2").style.display= 'none';
-
-window.successfullyParsed = true;
-</script>
-<script src="../../fast/js/resources/js-test-post.js"></script>
-</body>
-</html>
diff --git a/LayoutTests/editing/editability/attr-empty-string-expected.txt b/LayoutTests/fast/dom/HTMLElement/attr-empty-string-expected.txt
similarity index 100%
rename from LayoutTests/editing/editability/attr-empty-string-expected.txt
rename to LayoutTests/fast/dom/HTMLElement/attr-empty-string-expected.txt
diff --git a/LayoutTests/fast/dom/HTMLElement/attr-empty-string.html b/LayoutTests/fast/dom/HTMLElement/attr-empty-string.html
new file mode 100644
index 0000000..ac34b55
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLElement/attr-empty-string.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link rel="stylesheet" href="../../js/resources/js-test-style.css">
+<script src="../../js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></p>
+<div id="result"></div>
+<div id="div" contentEditable=""></div>
+<script>
+description('When contentEditable attribute is empty string, element.contentEditable returns "true" and the element is editable.')
+
+shouldBe('document.getElementById("div").getAttribute("contentEditable")','""');
+shouldBe('document.getElementById("div").contentEditable', '"true"');
+shouldBe('document.getElementById("div").isContentEditable', 'true');
+shouldBe('window.getComputedStyle(div, "").getPropertyValue("-webkit-user-modify")', '"read-write"');
+
+document.getElementById("div").style.display= 'none';
+
+window.successfullyParsed = true;
+</script>
+<script src="../../js/resources/js-test-post.js"></script>
+</body>
+</html>
diff --git a/LayoutTests/editing/editability/attr-false-string-expected.txt b/LayoutTests/fast/dom/HTMLElement/attr-false-string-expected.txt
similarity index 100%
rename from LayoutTests/editing/editability/attr-false-string-expected.txt
rename to LayoutTests/fast/dom/HTMLElement/attr-false-string-expected.txt
diff --git a/LayoutTests/fast/dom/HTMLElement/attr-false-string.html b/LayoutTests/fast/dom/HTMLElement/attr-false-string.html
new file mode 100644
index 0000000..7d5161a
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLElement/attr-false-string.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link rel="stylesheet" href="../../js/resources/js-test-style.css">
+<script src="../../js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></p>
+<div id="result"></div>
+<div id="div" contentEditable="false"></div>
+<script>
+description('When contentEditable attribute is "false" string, element.contentEditable returns "false" and the element is NOT editable.')
+
+shouldBe('document.getElementById("div").getAttribute("contentEditable")','"false"');
+shouldBe('document.getElementById("div").contentEditable', '"false"');
+shouldBe('document.getElementById("div").isContentEditable', 'false');
+shouldBe('window.getComputedStyle(div, "").getPropertyValue("-webkit-user-modify")', '"read-only"');
+
+document.getElementById("div").style.display= 'none';
+
+window.successfullyParsed = true;
+</script>
+<script src="../../js/resources/js-test-post.js"></script>
+</body>
+</html>
diff --git a/LayoutTests/editing/editability/attr-invalid-string-expected.txt b/LayoutTests/fast/dom/HTMLElement/attr-invalid-string-expected.txt
similarity index 100%
rename from LayoutTests/editing/editability/attr-invalid-string-expected.txt
rename to LayoutTests/fast/dom/HTMLElement/attr-invalid-string-expected.txt
diff --git a/LayoutTests/fast/dom/HTMLElement/attr-invalid-string.html b/LayoutTests/fast/dom/HTMLElement/attr-invalid-string.html
new file mode 100644
index 0000000..9bf0793
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLElement/attr-invalid-string.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link rel="stylesheet" href="../../js/resources/js-test-style.css">
+<script src="../../js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></p>
+<div id="result"></div>
+<div id="div" contentEditable="abc"></div>
+<script>
+description('When contentEditable attribute is invalid string, element.contentEditable returns "inherit".')
+
+shouldBe('document.getElementById("div").getAttribute("contentEditable")','"abc"');
+shouldBe('document.getElementById("div").contentEditable', '"inherit"');
+shouldBe('document.getElementById("div").isContentEditable', 'false');
+shouldBe('window.getComputedStyle(div, "").getPropertyValue("-webkit-user-modify")', '"read-only"');
+
+document.getElementById("div").style.display= 'none';
+
+window.successfullyParsed = true;
+</script>
+<script src="../../js/resources/js-test-post.js"></script>
+</body>
+</html>
diff --git a/LayoutTests/editing/editability/attr-missing-ancestor-false-expected.txt b/LayoutTests/fast/dom/HTMLElement/attr-missing-ancestor-false-expected.txt
similarity index 100%
rename from LayoutTests/editing/editability/attr-missing-ancestor-false-expected.txt
rename to LayoutTests/fast/dom/HTMLElement/attr-missing-ancestor-false-expected.txt
diff --git a/LayoutTests/fast/dom/HTMLElement/attr-missing-ancestor-false.html b/LayoutTests/fast/dom/HTMLElement/attr-missing-ancestor-false.html
new file mode 100644
index 0000000..385582d
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLElement/attr-missing-ancestor-false.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link rel="stylesheet" href="../../js/resources/js-test-style.css">
+<script src="../../js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></p>
+<div id="result"></div>
+<div id="div" contentEditable="false">
+  <div>
+    <div>
+      <p id="p"></p>
+    </div>
+  </div>
+</div>
+<script>
+description('When contentEditable is missing, it maps to "inherit" state and the element is NOT editable if its nearest ancestor is NOT.')
+
+shouldBe('document.getElementById("p").hasAttribute("contentEditable")', 'false');
+shouldBe('document.getElementById("p").contentEditable', '"inherit"');
+shouldBe('document.getElementById("p").isContentEditable', 'false');
+shouldBe('window.getComputedStyle(p, "").getPropertyValue("-webkit-user-modify")', '"read-only"');
+
+document.getElementById("div").style.display= 'none';
+
+window.successfullyParsed = true;
+</script>
+<script src="../../js/resources/js-test-post.js"></script>
+</body>
+</html>
diff --git a/LayoutTests/editing/editability/attr-missing-ancestor-true-expected.txt b/LayoutTests/fast/dom/HTMLElement/attr-missing-ancestor-true-expected.txt
similarity index 100%
rename from LayoutTests/editing/editability/attr-missing-ancestor-true-expected.txt
rename to LayoutTests/fast/dom/HTMLElement/attr-missing-ancestor-true-expected.txt
diff --git a/LayoutTests/fast/dom/HTMLElement/attr-missing-ancestor-true.html b/LayoutTests/fast/dom/HTMLElement/attr-missing-ancestor-true.html
new file mode 100644
index 0000000..65bfd7f
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLElement/attr-missing-ancestor-true.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link rel="stylesheet" href="../../js/resources/js-test-style.css">
+<script src="../../js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></p>
+<div id="result"></div>
+<div id="div" contentEditable="true">
+  <div>
+    <div>
+      <p id="p"></p>
+    </div>
+  </div>
+</div>
+</div>
+<script>
+description('When contentEditable is missing, it maps to "inherit" state and the element is editable if its nearest ancestor is.')
+
+shouldBe('document.getElementById("p").hasAttribute("contentEditable")','false');
+shouldBe('document.getElementById("p").contentEditable', '"inherit"');
+shouldBe('document.getElementById("p").isContentEditable', 'true');
+shouldBe('window.getComputedStyle(p, "").getPropertyValue("-webkit-user-modify")', '"read-write"');
+
+document.getElementById("div").style.display= 'none';
+
+window.successfullyParsed = true;
+</script>
+<script src="../../js/resources/js-test-post.js"></script>
+</body>
+</html>
diff --git a/LayoutTests/editing/editability/attr-missing-parent-ancestor-missing-expected.txt b/LayoutTests/fast/dom/HTMLElement/attr-missing-parent-ancestor-missing-expected.txt
similarity index 100%
rename from LayoutTests/editing/editability/attr-missing-parent-ancestor-missing-expected.txt
rename to LayoutTests/fast/dom/HTMLElement/attr-missing-parent-ancestor-missing-expected.txt
diff --git a/LayoutTests/fast/dom/HTMLElement/attr-missing-parent-ancestor-missing.html b/LayoutTests/fast/dom/HTMLElement/attr-missing-parent-ancestor-missing.html
new file mode 100644
index 0000000..7c4d932
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLElement/attr-missing-parent-ancestor-missing.html
@@ -0,0 +1,32 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link rel="stylesheet" href="../../js/resources/js-test-style.css">
+<script src="../../js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></p>
+<div id="result"></div>
+<div id="div">
+  <div>
+    <div>
+      <p id="p"></p>
+    </div>
+  </div>
+</div>
+<script>
+description('When contentEditable is missing, it maps to "inherit" state and the element is NOT editable if its parent/ancestor\'s contentEditable is also missing.')
+
+shouldBe('document.getElementById("p").hasAttribute("contentEditable")','false');
+shouldBe('document.getElementById("p").contentEditable', '"inherit"');
+shouldBe('document.getElementById("p").isContentEditable', 'false');
+shouldBe('window.getComputedStyle(p, "").getPropertyValue("-webkit-user-modify")', '"read-only"');
+
+document.getElementById("div").style.display= 'none';
+
+window.successfullyParsed = true;
+</script>
+<script src="../../js/resources/js-test-post.js"></script>
+</body>
+</html>
diff --git a/LayoutTests/editing/editability/attr-missing-parent-false-expected.txt b/LayoutTests/fast/dom/HTMLElement/attr-missing-parent-false-expected.txt
similarity index 100%
rename from LayoutTests/editing/editability/attr-missing-parent-false-expected.txt
rename to LayoutTests/fast/dom/HTMLElement/attr-missing-parent-false-expected.txt
diff --git a/LayoutTests/fast/dom/HTMLElement/attr-missing-parent-false.html b/LayoutTests/fast/dom/HTMLElement/attr-missing-parent-false.html
new file mode 100644
index 0000000..88724a4
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLElement/attr-missing-parent-false.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link rel="stylesheet" href="../../js/resources/js-test-style.css">
+<script src="../../js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></p>
+<div id="result"></div>
+<div id="div" contentEditable="false">
+    <p id="p"></p>
+</div>
+<script>
+description('When contentEditable is missing, it maps to "inherit" state and the element is NOT editable if its parent is NOT.')
+
+shouldBe('document.getElementById("p").hasAttribute("contentEditable")','false');
+shouldBe('document.getElementById("p").contentEditable', '"inherit"');
+shouldBe('document.getElementById("p").isContentEditable', 'false');
+shouldBe('window.getComputedStyle(p, "").getPropertyValue("-webkit-user-modify")', '"read-only"');
+
+document.getElementById("div").style.display= 'none';
+
+window.successfullyParsed = true;
+</script>
+<script src="../../js/resources/js-test-post.js"></script>
+</body>
+</html>
diff --git a/LayoutTests/editing/editability/attr-missing-parent-true-expected.txt b/LayoutTests/fast/dom/HTMLElement/attr-missing-parent-true-expected.txt
similarity index 100%
rename from LayoutTests/editing/editability/attr-missing-parent-true-expected.txt
rename to LayoutTests/fast/dom/HTMLElement/attr-missing-parent-true-expected.txt
diff --git a/LayoutTests/fast/dom/HTMLElement/attr-missing-parent-true.html b/LayoutTests/fast/dom/HTMLElement/attr-missing-parent-true.html
new file mode 100644
index 0000000..bd5664e
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLElement/attr-missing-parent-true.html
@@ -0,0 +1,28 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link rel="stylesheet" href="../../js/resources/js-test-style.css">
+<script src="../../js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></p>
+<div id="result"></div>
+<div id="div" contentEditable="true">
+    <p id="p"></p>
+</div>
+<script>
+description('When contentEditable is missing, it maps to "inherit" state and the element is editable if its parent is.')
+
+shouldBe('document.getElementById("p").hasAttribute("contentEditable")','false');
+shouldBe('document.getElementById("p").contentEditable', '"inherit"');
+shouldBe('document.getElementById("p").isContentEditable', 'true');
+shouldBe('window.getComputedStyle(p, "").getPropertyValue("-webkit-user-modify")', '"read-write"');
+
+document.getElementById("div").style.display= 'none';
+
+window.successfullyParsed = true;
+</script>
+<script src="../../js/resources/js-test-post.js"></script>
+</body>
+</html>
diff --git a/LayoutTests/editing/editability/attr-true-string-expected.txt b/LayoutTests/fast/dom/HTMLElement/attr-true-string-expected.txt
similarity index 100%
rename from LayoutTests/editing/editability/attr-true-string-expected.txt
rename to LayoutTests/fast/dom/HTMLElement/attr-true-string-expected.txt
diff --git a/LayoutTests/fast/dom/HTMLElement/attr-true-string.html b/LayoutTests/fast/dom/HTMLElement/attr-true-string.html
new file mode 100644
index 0000000..ee5d220
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLElement/attr-true-string.html
@@ -0,0 +1,26 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link rel="stylesheet" href="../../js/resources/js-test-style.css">
+<script src="../../js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></p>
+<div id="result"></div>
+<div id="div" contentEditable="true"></div>
+<script>
+description('When contentEditable attribute is "true" string, element.contentEditable returns "true" and the element is editable.')
+
+shouldBe('document.getElementById("div").getAttribute("contentEditable")','"true"');
+shouldBe('document.getElementById("div").contentEditable', '"true"');
+shouldBe('document.getElementById("div").isContentEditable', 'true');
+shouldBe('window.getComputedStyle(div, "").getPropertyValue("-webkit-user-modify")', '"read-write"');
+
+document.getElementById("div").style.display= 'none';
+
+window.successfullyParsed = true;
+</script>
+<script src="../../js/resources/js-test-post.js"></script>
+</body>
+</html>
diff --git a/LayoutTests/editing/editability/set-false-expected.txt b/LayoutTests/fast/dom/HTMLElement/set-false-expected.txt
similarity index 100%
rename from LayoutTests/editing/editability/set-false-expected.txt
rename to LayoutTests/fast/dom/HTMLElement/set-false-expected.txt
diff --git a/LayoutTests/fast/dom/HTMLElement/set-false.html b/LayoutTests/fast/dom/HTMLElement/set-false.html
new file mode 100644
index 0000000..6351515
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLElement/set-false.html
@@ -0,0 +1,38 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link rel="stylesheet" href="../../js/resources/js-test-style.css">
+<script src="../../js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></p>
+<div id="result"></div>
+<div id="div1" contenteditable="true"></div>
+<div id="div2" contenteditable="true">
+    <p id="p2"></p>
+</div>
+<script>
+description('When contentEditable is set to "false" string from "true" or inherit, element.contentEditable returns "false" and the element is NOT editable.')
+
+document.getElementById("div1").contentEditable = "false";
+document.getElementById("p2").contentEditable = "false";
+
+shouldBe('document.getElementById("div1").getAttribute("contentEditable")','"false"');
+shouldBe('document.getElementById("div1").contentEditable', '"false"');
+shouldBe('document.getElementById("div1").isContentEditable', 'false');
+debug("FIXME: setContentEditable with true/false/inherit string is not working properly. https://bugs.webkit.org/show_bug.cgi?id=52058");
+shouldBe('window.getComputedStyle(div1, "").getPropertyValue("-webkit-user-modify")', '"read-only"');
+
+shouldBe('document.getElementById("p2").contentEditable', '"false"');
+shouldBe('document.getElementById("p2").isContentEditable', 'false');
+shouldBe('window.getComputedStyle(p2, "").getPropertyValue("-webkit-user-modify")', '"read-only"');
+
+document.getElementById("div1").style.display= 'none';
+document.getElementById("div2").style.display= 'none';
+
+window.successfullyParsed = true;
+</script>
+<script src="../../js/resources/js-test-post.js"></script>
+</body>
+</html>
diff --git a/LayoutTests/editing/editability/set-inherit-parent-false-expected.txt b/LayoutTests/fast/dom/HTMLElement/set-inherit-parent-false-expected.txt
similarity index 100%
rename from LayoutTests/editing/editability/set-inherit-parent-false-expected.txt
rename to LayoutTests/fast/dom/HTMLElement/set-inherit-parent-false-expected.txt
diff --git a/LayoutTests/fast/dom/HTMLElement/set-inherit-parent-false.html b/LayoutTests/fast/dom/HTMLElement/set-inherit-parent-false.html
new file mode 100644
index 0000000..3aa54f1
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLElement/set-inherit-parent-false.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link rel="stylesheet" href="../../js/resources/js-test-style.css">
+<script src="../../js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></p>
+<div id="result"></div>
+<div id="div" contenteditable="false">
+    <p id="p" contenteditable="true"></p>
+</div>
+<script>
+description('When contentEditable is set to "inherit", the attribute must be removed and element.contentEditable should return "inherit".')
+
+document.getElementById("p").contentEditable = "inherit";
+
+shouldBe('document.getElementById("p").hasAttribute("contentEditable")','false');
+shouldBe('document.getElementById("p").contentEditable', '"inherit"');
+shouldBe('document.getElementById("p").isContentEditable', 'false');
+debug("FIXME: setContentEditable with true/false/inherit string is not working properly. https://bugs.webkit.org/show_bug.cgi?id=52058");
+shouldBe('window.getComputedStyle(p, "").getPropertyValue("-webkit-user-modify")', '"read-only"');
+
+document.getElementById("div").style.display= 'none';
+
+window.successfullyParsed = true;
+</script>
+<script src="../../js/resources/js-test-post.js"></script>
+</body>
+</html>
diff --git a/LayoutTests/editing/editability/set-inherit-parent-true-expected.txt b/LayoutTests/fast/dom/HTMLElement/set-inherit-parent-true-expected.txt
similarity index 100%
rename from LayoutTests/editing/editability/set-inherit-parent-true-expected.txt
rename to LayoutTests/fast/dom/HTMLElement/set-inherit-parent-true-expected.txt
diff --git a/LayoutTests/fast/dom/HTMLElement/set-inherit-parent-true.html b/LayoutTests/fast/dom/HTMLElement/set-inherit-parent-true.html
new file mode 100644
index 0000000..f139151
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLElement/set-inherit-parent-true.html
@@ -0,0 +1,31 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link rel="stylesheet" href="../../js/resources/js-test-style.css">
+<script src="../../js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></p>
+<div id="result"></div>
+<div id="div" contenteditable="true">
+    <p id="p" contenteditable="false"></p>
+</div>
+<script>
+description('When contentEditable is set to "inherit", the attribute must be removed and element.contentEditable should return "inherit".')
+
+document.getElementById("p").contentEditable = "inherit";
+
+shouldBe('document.getElementById("p").hasAttribute("contentEditable")','false');
+shouldBe('document.getElementById("p").contentEditable', '"inherit"');
+shouldBe('document.getElementById("p").isContentEditable', 'true');
+debug("FIXME: setContentEditable with true/false/inherit string is not working properly. https://bugs.webkit.org/show_bug.cgi?id=52058");
+shouldBe('window.getComputedStyle(p, "").getPropertyValue("-webkit-user-modify")', '"read-write"');
+
+document.getElementById("div").style.display= 'none';
+
+window.successfullyParsed = true;
+</script>
+<script src="../../js/resources/js-test-post.js"></script>
+</body>
+</html>
diff --git a/LayoutTests/editing/editability/set-invalid-value-expected.txt b/LayoutTests/fast/dom/HTMLElement/set-invalid-value-expected.txt
similarity index 100%
rename from LayoutTests/editing/editability/set-invalid-value-expected.txt
rename to LayoutTests/fast/dom/HTMLElement/set-invalid-value-expected.txt
diff --git a/LayoutTests/fast/dom/HTMLElement/set-invalid-value.html b/LayoutTests/fast/dom/HTMLElement/set-invalid-value.html
new file mode 100644
index 0000000..3f41ff7
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLElement/set-invalid-value.html
@@ -0,0 +1,33 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link rel="stylesheet" href="../../js/resources/js-test-style.css">
+<script src="../../js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></p>
+<div id="result"></div>
+<div id="div" contenteditable="true"></div>
+<script>
+description('When contentEditable is set to invalid string, SYNTAX_ERR exception (code: 12) must be raised.')
+
+shouldThrow("document.getElementById('div').contentEditable = 'abc'", '"Error: SYNTAX_ERR: DOM Exception 12"');
+shouldBe('document.getElementById("div").getAttribute("contentEditable")','"true"');
+shouldBe('document.getElementById("div").contentEditable', '"true"');
+shouldBe('document.getElementById("div").isContentEditable', 'true');
+shouldBe('window.getComputedStyle(div, "").getPropertyValue("-webkit-user-modify")', '"read-write"');
+
+shouldThrow("document.getElementById('div').contentEditable = ''", '"Error: SYNTAX_ERR: DOM Exception 12"');
+shouldBe('document.getElementById("div").getAttribute("contentEditable")','"true"');
+shouldBe('document.getElementById("div").contentEditable', '"true"');
+shouldBe('document.getElementById("div").isContentEditable', 'true');
+shouldBe('window.getComputedStyle(div, "").getPropertyValue("-webkit-user-modify")', '"read-write"');
+
+document.getElementById("div").style.display= 'none';
+
+window.successfullyParsed = true;
+</script>
+<script src="../../js/resources/js-test-post.js"></script>
+</body>
+</html>
diff --git a/LayoutTests/editing/editability/set-true-expected.txt b/LayoutTests/fast/dom/HTMLElement/set-true-expected.txt
similarity index 100%
rename from LayoutTests/editing/editability/set-true-expected.txt
rename to LayoutTests/fast/dom/HTMLElement/set-true-expected.txt
diff --git a/LayoutTests/fast/dom/HTMLElement/set-true.html b/LayoutTests/fast/dom/HTMLElement/set-true.html
new file mode 100644
index 0000000..08760d8
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLElement/set-true.html
@@ -0,0 +1,39 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link rel="stylesheet" href="../../js/resources/js-test-style.css">
+<script src="../../js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></p>
+<div id="result"></div>
+<div id="div1" contenteditable="false"></div>
+<div id="div2" contenteditable="false">
+    <p id="p2"></p>
+</div>
+<script>
+description('When contentEditable is set to "true" string from "false" or inherit, element.contentEditable returns "true" and the element is editable.')
+
+document.getElementById("div1").contentEditable = "true";
+document.getElementById("p2").contentEditable = "true";
+
+shouldBe('document.getElementById("div1").getAttribute("contentEditable")','"true"');
+shouldBe('document.getElementById("div1").contentEditable', '"true"');
+shouldBe('document.getElementById("div1").isContentEditable', 'true');
+debug("FIXME: setContentEditable with true/false/inherit string is not working properly. https://bugs.webkit.org/show_bug.cgi?id=52058");
+shouldBe('window.getComputedStyle(div1, "").getPropertyValue("-webkit-user-modify")', '"read-write"');
+
+shouldBe('document.getElementById("p2").getAttribute("contentEditable")','"true"');
+shouldBe('document.getElementById("p2").contentEditable', '"true"');
+shouldBe('document.getElementById("p2").isContentEditable', 'true');
+shouldBe('window.getComputedStyle(p2, "").getPropertyValue("-webkit-user-modify")', '"read-write"');
+
+document.getElementById("div1").style.display= 'none';
+document.getElementById("div2").style.display= 'none';
+
+window.successfullyParsed = true;
+</script>
+<script src="../../js/resources/js-test-post.js"></script>
+</body>
+</html>
diff --git a/LayoutTests/editing/editability/set-value-caseinsensitive-expected.txt b/LayoutTests/fast/dom/HTMLElement/set-value-caseinsensitive-expected.txt
similarity index 100%
rename from LayoutTests/editing/editability/set-value-caseinsensitive-expected.txt
rename to LayoutTests/fast/dom/HTMLElement/set-value-caseinsensitive-expected.txt
diff --git a/LayoutTests/fast/dom/HTMLElement/set-value-caseinsensitive.html b/LayoutTests/fast/dom/HTMLElement/set-value-caseinsensitive.html
new file mode 100644
index 0000000..d3b0a4b
--- /dev/null
+++ b/LayoutTests/fast/dom/HTMLElement/set-value-caseinsensitive.html
@@ -0,0 +1,47 @@
+<!DOCTYPE html>
+<html>
+<head>
+<link rel="stylesheet" href="../../js/resources/js-test-style.css">
+<script src="../../js/resources/js-test-pre.js"></script>
+</head>
+<body>
+<p id="description"></p>
+<div id="console"></p>
+<div id="result"></div>
+<div id="div1" contenteditable="false"></div>
+<p id="p1" contenteditable="true"></p>
+<div id="div2" contenteditable="true">
+    <p id="p2" contenteditable="false"></p>
+</div>
+<script>
+description('When contentEditable is set to a new value, the new value can be case-insensitive.')
+
+document.getElementById("div1").contentEditable = "TRue";
+document.getElementById("p1").contentEditable = "faLSE";
+document.getElementById("p2").contentEditable = "inHERIT";
+
+shouldBe('document.getElementById("div1").getAttribute("contentEditable")','"true"');
+shouldBe('document.getElementById("div1").contentEditable', '"true"');
+shouldBe('document.getElementById("div1").isContentEditable', 'true');
+debug("FIXME: isContentEditable is not working properly. Related to https://bugs.webkit.org/show_bug.cgi?id=52058");
+shouldBe('window.getComputedStyle(div1, "").getPropertyValue("-webkit-user-modify")', '"read-write"');
+
+shouldBe('document.getElementById("p1").getAttribute("contentEditable")','"false"');
+shouldBe('document.getElementById("p1").contentEditable', '"false"');
+shouldBe('document.getElementById("p1").isContentEditable', 'false');
+shouldBe('window.getComputedStyle(p1, "").getPropertyValue("-webkit-user-modify")', '"read-only"');
+
+shouldBe('document.getElementById("p2").hasAttribute("contentEditable")','false');
+shouldBe('document.getElementById("p2").contentEditable', '"inherit"');
+shouldBe('document.getElementById("p2").isContentEditable', 'true');
+shouldBe('window.getComputedStyle(p2, "").getPropertyValue("-webkit-user-modify")', '"read-write"');
+
+document.getElementById("div1").style.display= 'none';
+document.getElementById("p1").style.display= 'none';
+document.getElementById("div2").style.display= 'none';
+
+window.successfullyParsed = true;
+</script>
+<script src="../../js/resources/js-test-post.js"></script>
+</body>
+</html>

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list