Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

Oja hg fix h2 #223

Merged
merged 11 commits into from Jul 7, 2014
Merged

Oja hg fix h2 #223

merged 11 commits into from Jul 7, 2014

Conversation

hmgibson23
Copy link
Contributor

This contains a fix for a bug when Chrome inserts extra text elements after a change of focus (i.e. a button click) and leaves unwanted H2 elements in the remaining markup

See the large comment above the change code for more.

@@ -445,4 +445,23 @@ describe('commands', function () {
});
});
});

describe.only('formatBlock heading', function () {
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you mean to commit .only?

givenContentOf('<h2>1|</h2>', function () {
when('the formatblock command is executed with h2', function() {
beforeEach(function () {
return scribeNode.sendKeys(webdriver.Key.LEFT).then(function () {
Copy link
Contributor

Choose a reason for hiding this comment

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

We should leave a comment to note what bug this test is trying to re-produce.

We're currently linking tests with patches just by duplicating comments and the links to isolated test cases. This could be done better: #93 (comment)

@OliverJAsh
Copy link
Contributor

Nice work!

@hmgibson23
Copy link
Contributor Author

I think it's more your work!

@hmgibson23
Copy link
Contributor Author

All tests working fine

*
*/
describe('formatBlock heading', function () {
givenContentOf('<h2>1|</h2>', function () {
Copy link
Contributor

Choose a reason for hiding this comment

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

Wrong indentation? Two spaces…

@OliverJAsh
Copy link
Contributor

👍

hmgibson23 added a commit that referenced this pull request Jul 7, 2014
@hmgibson23 hmgibson23 merged commit e80c14b into master Jul 7, 2014
@OliverJAsh OliverJAsh deleted the oja-hg-fix-h2 branch July 16, 2014 14:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants