Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 444310

Summary: [safari] Unit test failure in HTMLTemplate-shim
Product: [ECD] Orion Reporter: Mark Macdonald <mamacdon>
Component: ClientAssignee: Mark Macdonald <mamacdon>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: curtis.windatt.public
Version: 6.0   
Target Milestone: 9.0   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Mark Macdonald CLA 2014-09-16 18:40:07 EDT
The "NewTemplateElement" test from HTMLTemplate test suite has been failing on OS X + Safari 7, see [1]. It should be either fixed or removed.

FWIW, while the inheritance details of DOM elements differ between browsers, they all allow the innerHTML property to be re-configured.. except Safari:

Firefox:
> Object.getOwnPropertyDescriptor(Element.prototype, "innerHTML").configurable               // true

IE:
> Object.getOwnPropertyDescriptor(HTMLElement.prototype, "innerHTML").configurable           // true

Chrome:
> Object.getOwnPropertyDescriptor(document.createElement("div"), "innerHTML").configurable   // true

Safari:
> Object.getOwnPropertyDescriptor(document.createElement("div"), "innerHTML").configurable   // false :(


[1] https://hudson.eclipse.org/orion/job/orion-client-dev/476/testReport/OS_X_10.9_safari_7.js_tests_ui_uiTests/Test%20HTMLTemplate/NewTemplateElement/
Comment 1 Mark Macdonald CLA 2015-03-09 17:22:25 EDT
Fixed by skipping the test in nightly builds.
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/commit/?id=0bd900a

The HTMLTemplates-shim feature remains broken in Safari.