|
|
Chromium Code Reviews|
Created:
5 years, 1 month ago by tanay.c Modified:
5 years, 1 month ago Reviewers:
philipj_slow Base URL:
https://chromium.googlesource.com/chromium/src.git@master Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionRemove [TreatNullAs=NullString] from the 'dir' attribute on Document
Current behavior:
Chrome: document.dir=null => ""
Edge: document.dir=null => ""
Firefox Nightly: document.dir=null => ""
The getter and setter for 'dir' forwards to the documentElement (if it
is an HTMLHtmlElement), hence adding tests for:
document.documentElement.getAttribute('dir') => 'null'
BUG=497307
Committed: https://crrev.com/a7d96a1f1b53a8c6af526c178aefb574dbb2e744
Cr-Commit-Position: refs/heads/master@{#357549}
Patch Set 1 #Patch Set 2 : #Patch Set 3 : Added tests #
Total comments: 2
Patch Set 4 : #
Messages
Total messages: 22 (11 generated)
Description was changed from ========== Remove [TreatNullAs=NullString] from the 'dir' attribute on Document BUG=497307 ========== to ========== Remove [TreatNullAs=NullString] from the 'dir' attribute on Document Current behavior: Chrome: document.dir=null => "" Edge: document.dir=null => "" Firefox Nightly: document.dir=null => "" Change does not effect current behaviour BUG=497307 ==========
tanay.c@samsung.com changed reviewers: + philipj@opera.com
PTAL.
Please write in the description *why* this change is not observable. It seems to
me that the change must be observable, because:
void HTMLElement::setDir(const AtomicString& value)
{
setAttribute(dirAttr, value);
}
In other words, your testing needs to also include
document.documentElement.getAttribute("dir"), which will have changed.
Description was changed from
==========
Remove [TreatNullAs=NullString] from the 'dir' attribute on Document
Current behavior:
Chrome: document.dir=null => ""
Edge: document.dir=null => ""
Firefox Nightly: document.dir=null => ""
Change does not effect current behaviour
BUG=497307
==========
to
==========
Remove [TreatNullAs=NullString] from the 'dir' attribute on Document
Current behavior:
Chrome: document.dir=null => ""
Edge: document.dir=null => ""
Firefox Nightly: document.dir=null => ""
Change does not effect current behaviour on document.dir
The getter and setter for 'dir' forwards to the documentElement ( if it is an
HTMLHtmlElement ) , hence checking
document.documentElement.getAttribute('dir') => 'null'
BUG=497307
==========
Description was changed from
==========
Remove [TreatNullAs=NullString] from the 'dir' attribute on Document
Current behavior:
Chrome: document.dir=null => ""
Edge: document.dir=null => ""
Firefox Nightly: document.dir=null => ""
Change does not effect current behaviour on document.dir
The getter and setter for 'dir' forwards to the documentElement ( if it is an
HTMLHtmlElement ) , hence checking
document.documentElement.getAttribute('dir') => 'null'
BUG=497307
==========
to
==========
Remove [TreatNullAs=NullString] from the 'dir' attribute on Document
Current behavior:
Chrome: document.dir=null => ""
Edge: document.dir=null => ""
Firefox Nightly: document.dir=null => ""
Change does not effect current behaviour on document.dir
The getter and setter for 'dir' forwards to the documentElement ( if it is an
HTMLHtmlElement ) , hence adding tests for
document.documentElement.getAttribute('dir') => 'null'
BUG=497307
==========
Description was changed from
==========
Remove [TreatNullAs=NullString] from the 'dir' attribute on Document
Current behavior:
Chrome: document.dir=null => ""
Edge: document.dir=null => ""
Firefox Nightly: document.dir=null => ""
Change does not effect current behaviour on document.dir
The getter and setter for 'dir' forwards to the documentElement ( if it is an
HTMLHtmlElement ) , hence adding tests for
document.documentElement.getAttribute('dir') => 'null'
BUG=497307
==========
to
==========
Remove [TreatNullAs=NullString] from the 'dir' attribute on Document
Current behavior:
Chrome: document.dir=null => ""
Edge: document.dir=null => ""
Firefox Nightly: document.dir=null => ""
Change does not effect current behaviour on document.dir
The getter and setter for 'dir' forwards to the documentElement ( if it is an
HTMLHtmlElement ) .
Hence adding tests for :
document.documentElement.getAttribute('dir') => 'null'
BUG=497307
==========
Description was changed from
==========
Remove [TreatNullAs=NullString] from the 'dir' attribute on Document
Current behavior:
Chrome: document.dir=null => ""
Edge: document.dir=null => ""
Firefox Nightly: document.dir=null => ""
Change does not effect current behaviour on document.dir
The getter and setter for 'dir' forwards to the documentElement ( if it is an
HTMLHtmlElement ) .
Hence adding tests for :
document.documentElement.getAttribute('dir') => 'null'
BUG=497307
==========
to
==========
Remove [TreatNullAs=NullString] from the 'dir' attribute on Document
Current behavior:
Chrome: document.dir=null => ""
Edge: document.dir=null => ""
Firefox Nightly: document.dir=null => ""
Change does not effect current behaviour on document.dir
The getter and setter for 'dir' forwards to the documentElement (if it is an
HTMLHtmlElement )
Hence adding tests for :
document.documentElement.getAttribute('dir') => 'null'
BUG=497307
==========
On 2015/11/02 12:53:49, philipj wrote:
> Please write in the description *why* this change is not observable. It seems
to
> me that the change must be observable, because:
>
> void HTMLElement::setDir(const AtomicString& value)
> {
> setAttribute(dirAttr, value);
> }
>
> In other words, your testing needs to also include
> document.documentElement.getAttribute("dir"), which will have changed.
Updated the tests to check for document.documentElement.getAttribute("dir").
Updated description. PTAL.
Description was changed from
==========
Remove [TreatNullAs=NullString] from the 'dir' attribute on Document
Current behavior:
Chrome: document.dir=null => ""
Edge: document.dir=null => ""
Firefox Nightly: document.dir=null => ""
Change does not effect current behaviour on document.dir
The getter and setter for 'dir' forwards to the documentElement (if it is an
HTMLHtmlElement )
Hence adding tests for :
document.documentElement.getAttribute('dir') => 'null'
BUG=497307
==========
to
==========
Remove [TreatNullAs=NullString] from the 'dir' attribute on Document
Current behavior:
Chrome: document.dir=null => ""
Edge: document.dir=null => ""
Firefox Nightly: document.dir=null => ""
Change does not effect current behaviour on document.dir
The getter and setter for 'dir' forwards to the documentElement (if it is an
HTMLHtmlElement)
Hence adding tests for:
document.documentElement.getAttribute('dir') => 'null'
BUG=497307
==========
https://codereview.chromium.org/1420593005/diff/40001/third_party/WebKit/Layo... File third_party/WebKit/LayoutTests/fast/dom/document-dir-property.html (right): https://codereview.chromium.org/1420593005/diff/40001/third_party/WebKit/Layo... third_party/WebKit/LayoutTests/fast/dom/document-dir-property.html:57: shouldNotThrow("document.dir = 'RTL'"); After this and the WRONG case, test that the content attribute is 'RTL' and 'WRONG' respectively. (In other words, it's just set verbatim.)
PTAL. https://codereview.chromium.org/1420593005/diff/40001/third_party/WebKit/Layo... File third_party/WebKit/LayoutTests/fast/dom/document-dir-property.html (right): https://codereview.chromium.org/1420593005/diff/40001/third_party/WebKit/Layo... third_party/WebKit/LayoutTests/fast/dom/document-dir-property.html:57: shouldNotThrow("document.dir = 'RTL'"); On 2015/11/03 11:00:23, philipj wrote: > After this and the WRONG case, test that the content attribute is 'RTL' and > 'WRONG' respectively. (In other words, it's just set verbatim.) Done.
Description was changed from
==========
Remove [TreatNullAs=NullString] from the 'dir' attribute on Document
Current behavior:
Chrome: document.dir=null => ""
Edge: document.dir=null => ""
Firefox Nightly: document.dir=null => ""
Change does not effect current behaviour on document.dir
The getter and setter for 'dir' forwards to the documentElement (if it is an
HTMLHtmlElement)
Hence adding tests for:
document.documentElement.getAttribute('dir') => 'null'
BUG=497307
==========
to
==========
Remove [TreatNullAs=NullString] from the 'dir' attribute on Document
Current behavior:
Chrome: document.dir=null => ""
Edge: document.dir=null => ""
Firefox Nightly: document.dir=null => ""
The getter and setter for 'dir' forwards to the documentElement (if it
is an HTMLHtmlElement), hence adding tests for:
document.documentElement.getAttribute('dir') => 'null'
BUG=497307
==========
The CQ bit was checked by philipj@opera.com
lgtm
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1420593005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1420593005/60001
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_...)
The CQ bit was checked by philipj@opera.com
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1420593005/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1420593005/60001
Message was sent while issue was closed.
Committed patchset #4 (id:60001)
Message was sent while issue was closed.
Patchset 4 (id:??) landed as https://crrev.com/a7d96a1f1b53a8c6af526c178aefb574dbb2e744 Cr-Commit-Position: refs/heads/master@{#357549} |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
