Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CEReactions tests #14711

Merged
merged 2 commits into from Jan 30, 2019
Merged

Add CEReactions tests #14711

merged 2 commits into from Jan 30, 2019

Conversation

xiuqijix
Copy link
Contributor

@xiuqijix xiuqijix commented Jan 4, 2019

part of issue #5727

  • HTMLMapElement
  • HTMLCanvasElement
  • HTMLDataElement
  • HTMLDetailsElement
  • HTMLModElement
  • HTMLOListElement
  • HTMLQuoteElement
  • HTMLSlotElement
  • HTMLTimeElement

- HTMLMapElement
- HTMLCanvasElement
- HTMLDataElement
- HTMLDetailsElement
- HTMLModElement
- HTMLOListElement
- HTMLQuoteElement
- HTMLSlotElement
- HTMLTimeElement
@domenic
Copy link
Member

domenic commented Jan 24, 2019

w3c-test:mirror

Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tests are wrong with boolean attributes; unclear what's going on with


<script>

testReflectAttribute('open', 'open', 'true', 'false', 'open on HTMLDetailsElement', 'details', HTMLDetailsElement);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Boolean attributes don't get reflected by the strings "true" and "false". They get reflected by the removal or addition of the attribute.


<script>

testReflectAttribute('cite', 'cite', '../resources/custom-elements-helpers.js', './resources/reactions.js', 'cite on ins use HTMLModElement', 'ins', HTMLModElement);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test fails on Chrome. I believe it is because the attribute name is datetime, not dateTime.


<script>

testReflectAttribute('reversed', 'reversed', 'true', 'false', 'reversed on HTMLOListElement', 'ol', HTMLOListElement);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Boolean attributes problem again


<script>

testReflectAttribute('dateTime', 'dateTime', '2018-12-10', '2018-12-12', 'dateTime on HTMLTimeElement', 'time', HTMLTimeElement);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also fails on Chrome, also I guess for the same reason.

- Use "datetime" as the attribute name.
- Modify the tests for boolean attributes.
@xiuqijix
Copy link
Contributor Author

@domenic, many thanks for your review! I just submit a new commit to address your comments, PTAL.

@domenic
Copy link
Member

domenic commented Jan 25, 2019

w3c-test:mirror

@domenic domenic merged commit 449eccc into web-platform-tests:master Jan 30, 2019
@xiuqijix xiuqijix deleted the CEReactions branch February 11, 2019 02:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants