Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1343)

Issue 821303006: bindings: Fixes layouttests when moving attributes to prototype chains. (Closed)

Created:
5 years, 11 months ago by Yuki
Modified:
5 years, 11 months ago
Reviewers:
haraken, jsbell
CC:
blink-reviews, eustas+blink_chromium.org, caseq+blink_chromium.org, jsbell+idb_chromium.org, loislo+blink_chromium.org, pfeldman+blink_chromium.org, mlamouri+watch-blink_chromium.org, yurys+blink_chromium.org, timvolodine, vsevik+blink_chromium.org, mvanouwerkerk+watch_chromium.org, tommyw+watchlist_chromium.org, paulirish+reviews_chromium.org, apavlov+blink_chromium.org, lushnikov+blink_chromium.org, cmumford, devtools-reviews_chromium.org, dgrogan, sergeyv+blink_chromium.org, aandrey+blink_chromium.org, malch+blink_chromium.org
Target Ref:
refs/remotes/origin/master
Project:
blink
Visibility:
Public.

Description

bindings: Fixes layouttests when moving attributes to prototype chains. Fixes layouttests so that they pass when DOM attributes are moved to prototype chains. Major changes are: - JSON.stringify doesn't work for DOM attributes on prototype chains. We're going to use stringifyDOMObject instead defined in js-test.js. - Use of assert_own_property for DOM attributes is wrong. We use assert_will_be_idl_attribute in this CL, and after we move to prototype chains, we'll replace it with assert_idl_attribute. - element-instance-property-listing is expected to list all the DOM attributes. So I changed it to list up all attributes including those on prototype. BUG=43394 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=188873

Patch Set 1 #

Patch Set 2 : Synced. #

Patch Set 3 : s/tab/space/g #

Total comments: 2

Patch Set 4 : Fixed stringifyDOMObject and keypath-intrinsic-properties test. #

Patch Set 5 : Updated webexposed/element-instance-property-listing-expected.txt #

Patch Set 6 : #

Total comments: 6

Patch Set 7 : Addressed review comments. #

Total comments: 6

Patch Set 8 : Reverted http/tests/w3c/webperf/resources/worker.js #

Patch Set 9 : Fixed performance memory tests and addressed review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+630 lines, -39 lines) Patch
M LayoutTests/fast/dom/Geolocation/enabled-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/fast/dom/Geolocation/script-tests/enabled.js View 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/fast/dom/script-tests/webtiming-document-open.js View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M LayoutTests/fast/dom/script-tests/webtiming-navigate-within-document.js View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M LayoutTests/fast/js/script-tests/delete-syntax.js View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M LayoutTests/fast/mediastream/RTCIceCandidate.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/mediastream/RTCIceCandidate-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/mediastream/RTCSessionDescription.html View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/mediastream/RTCSessionDescription-expected.txt View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/fast/svg/SVGStyleElement.html View 1 2 3 4 5 6 7 8 2 chunks +9 lines, -6 lines 0 comments Download
M LayoutTests/http/tests/misc/performance-memory-in-dedicated-worker.html View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -1 line 0 comments Download
M LayoutTests/http/tests/misc/performance-memory-in-shared-worker.html View 1 2 3 4 5 6 7 8 1 chunk +4 lines, -1 line 0 comments Download
M LayoutTests/http/tests/notifications/resources/serviceworker-notification-event.js View 2 chunks +5 lines, -3 lines 0 comments Download
M LayoutTests/http/tests/notifications/serviceworker-notification-event.html View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/push_messaging/resources/pushevent-extendable-event.js View 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/http/tests/push_messaging/subscribe_success.html View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M LayoutTests/http/tests/resources/testharness-helpers.js View 1 2 3 4 5 6 7 8 1 chunk +22 lines, -0 lines 0 comments Download
M LayoutTests/http/tests/security/contentSecurityPolicy/img-blocked-no-gc-crash-expected.txt View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/resources/js-test.js View 1 2 3 4 5 6 2 chunks +27 lines, -0 lines 0 comments Download
M LayoutTests/storage/indexeddb/resources/keypath-intrinsic-properties.js View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M LayoutTests/virtual/stable/webexposed/element-instance-property-listing-expected.txt View 38 chunks +259 lines, -0 lines 0 comments Download
M LayoutTests/webexposed/element-instance-property-listing-expected.txt View 1 2 3 4 38 chunks +273 lines, -0 lines 0 comments Download
M LayoutTests/webexposed/resources/element-instance-property-listing.js View 1 2 3 4 5 6 1 chunk +9 lines, -9 lines 0 comments Download
M Source/core/inspector/InjectedScriptBase.cpp View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 14 (4 generated)
Yuki
Could you review this CL? We have a few more tests to fix in order ...
5 years, 11 months ago (2015-01-20 13:25:08 UTC) #2
jsbell
https://codereview.chromium.org/821303006/diff/40001/LayoutTests/storage/indexeddb/resources/keypath-intrinsic-properties.js File LayoutTests/storage/indexeddb/resources/keypath-intrinsic-properties.js (right): https://codereview.chromium.org/821303006/diff/40001/LayoutTests/storage/indexeddb/resources/keypath-intrinsic-properties.js#newcode33 LayoutTests/storage/indexeddb/resources/keypath-intrinsic-properties.js:33: blob: JSON.parse(stringifyDOMObject( Doesn't this change the test? Instead of ...
5 years, 11 months ago (2015-01-20 17:06:43 UTC) #4
Yuki
https://codereview.chromium.org/821303006/diff/40001/LayoutTests/storage/indexeddb/resources/keypath-intrinsic-properties.js File LayoutTests/storage/indexeddb/resources/keypath-intrinsic-properties.js (right): https://codereview.chromium.org/821303006/diff/40001/LayoutTests/storage/indexeddb/resources/keypath-intrinsic-properties.js#newcode33 LayoutTests/storage/indexeddb/resources/keypath-intrinsic-properties.js:33: blob: JSON.parse(stringifyDOMObject( On 2015/01/20 17:06:43, jsbell wrote: > Doesn't ...
5 years, 11 months ago (2015-01-21 07:43:24 UTC) #6
jsbell
https://codereview.chromium.org/821303006/diff/120001/LayoutTests/fast/dom/script-tests/webtiming-document-open.js File LayoutTests/fast/dom/script-tests/webtiming-document-open.js (right): https://codereview.chromium.org/821303006/diff/120001/LayoutTests/fast/dom/script-tests/webtiming-document-open.js#newcode30 LayoutTests/fast/dom/script-tests/webtiming-document-open.js:30: var properties = []; This pattern repeats often. Perhaps ...
5 years, 11 months ago (2015-01-21 18:09:40 UTC) #7
Yuki
https://codereview.chromium.org/821303006/diff/120001/LayoutTests/fast/dom/script-tests/webtiming-document-open.js File LayoutTests/fast/dom/script-tests/webtiming-document-open.js (right): https://codereview.chromium.org/821303006/diff/120001/LayoutTests/fast/dom/script-tests/webtiming-document-open.js#newcode30 LayoutTests/fast/dom/script-tests/webtiming-document-open.js:30: var properties = []; On 2015/01/21 18:09:39, jsbell wrote: ...
5 years, 11 months ago (2015-01-22 06:53:29 UTC) #8
jsbell
lgtm except for the http/tests/w3c change - not sure which tests include that script but ...
5 years, 11 months ago (2015-01-22 17:57:30 UTC) #9
haraken
LGTM https://codereview.chromium.org/821303006/diff/140001/LayoutTests/fast/svg/SVGStyleElement.html File LayoutTests/fast/svg/SVGStyleElement.html (right): https://codereview.chromium.org/821303006/diff/140001/LayoutTests/fast/svg/SVGStyleElement.html#newcode17 LayoutTests/fast/svg/SVGStyleElement.html:17: // assert_idl_attribute(style, "sheet", description); Can we use assert_will_be_idl_attribute? ...
5 years, 11 months ago (2015-01-23 01:41:32 UTC) #10
Yuki
https://codereview.chromium.org/821303006/diff/140001/LayoutTests/fast/svg/SVGStyleElement.html File LayoutTests/fast/svg/SVGStyleElement.html (right): https://codereview.chromium.org/821303006/diff/140001/LayoutTests/fast/svg/SVGStyleElement.html#newcode17 LayoutTests/fast/svg/SVGStyleElement.html:17: // assert_idl_attribute(style, "sheet", description); On 2015/01/23 01:41:32, haraken wrote: ...
5 years, 11 months ago (2015-01-23 08:06:20 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/821303006/180001
5 years, 11 months ago (2015-01-23 11:08:31 UTC) #13
commit-bot: I haz the power
5 years, 11 months ago (2015-01-23 11:12:29 UTC) #14
Message was sent while issue was closed.
Committed patchset #9 (id:180001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=188873

Powered by Google App Engine
This is Rietveld 408576698