Bug 80661

Summary: fast/dom/MicroData/itemtype-attribute-test.html fails on Mac port
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: DOMAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: abarth, arko, darin, syoichi
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 68609    

Description Ryosuke Niwa 2012-03-08 18:00:02 PST
--- /Volumes/Data/webkit4/WebKitBuild/Debug/layout-test-results/fast/dom/MicroData/itemtype-attribute-test-expected.txt 
+++ /Volumes/Data/webkit4/WebKitBuild/Debug/layout-test-results/fast/dom/MicroData/itemtype-attribute-test-actual.txt 
@@ -10,7 +10,7 @@
 itemType and itemType.length must be read-only.
 PASS element.itemType = 'http://example.com/test'; element.itemType.toString() == 'http://example.com/foo' is true
 PASS element.itemType.contains('http://example.com/test') is false
-PASS element.itemType.length = 0; element.itemType.length == 1 is true
+FAIL element.itemType.length = 0; element.itemType.length == 1 should be true. Was false.
 
 removeAttribute('itemType') must reflect correctly.
 PASS element.itemType.toString() is ''
Comment 1 Ryosuke Niwa 2012-03-08 18:15:17 PST
Note: you have run fast/dom/MicroData/itemtype-add-remove-tokens.html
and fast/dom/MicroData/itemtype-attribute-test.html in the respective order to reproduce this bug.

Also, replacing shouldBeTrue("element.itemType.length = 0; element.itemType.length == 1") by
shouldBe("element.itemType.length = 0; element.itemType.length", "1") will make it always pass :(

Maybe this is a JSC bug?