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

Issue 1173403004: Changed to use JSInterop (Closed)

Created:
5 years, 6 months ago by terry
Modified:
5 years, 5 months ago
Reviewers:
vsm, Alan Knight, siva
CC:
reviews_dartlang.org, ricow1
Base URL:
https://github.com/dart-lang/sdk.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Added --gen-interop switch #

Patch Set 3 : Merged the removal of childNodes for JSInterop #

Patch Set 4 : Revert accidental removal #

Total comments: 14

Patch Set 5 : Integrated CL suggestions #

Patch Set 6 : Reverted generated html_dartium.dart file. #

Patch Set 7 : Re-gen'd somehow diffs stopped showing up in CL #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5857 lines, -2345 lines) Patch
M sdk/lib/html/dart2js/html_dart2js.dart View 1 2 3 4 5 4 chunks +17 lines, -16 lines 0 comments Download
M sdk/lib/indexed_db/dartium/indexed_db_dartium.dart View 1 2 3 4 5 14 chunks +286 lines, -143 lines 0 comments Download
M sdk/lib/svg/dartium/svg_dartium.dart View 1 2 3 4 5 206 chunks +3165 lines, -1390 lines 0 comments Download
M sdk/lib/web_audio/dartium/web_audio_dartium.dart View 1 2 3 4 5 29 chunks +619 lines, -286 lines 0 comments Download
M sdk/lib/web_gl/dartium/web_gl_dartium.dart View 1 2 3 4 5 43 chunks +862 lines, -373 lines 0 comments Download
M sdk/lib/web_sql/dartium/web_sql_dartium.dart View 1 2 3 4 5 8 chunks +102 lines, -31 lines 0 comments Download
M tools/dom/scripts/css_code_generator.py View 1 2 3 4 5 4 chunks +37 lines, -1 line 0 comments Download
M tools/dom/scripts/dartdomgenerator.py View 1 2 3 4 5 7 chunks +25 lines, -15 lines 0 comments Download
M tools/dom/scripts/generator.py View 1 2 3 4 5 2 chunks +43 lines, -2 lines 0 comments Download
M tools/dom/scripts/htmldartgenerator.py View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M tools/dom/scripts/htmlrenamer.py View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M tools/dom/scripts/systemhtml.py View 1 2 3 4 5 6 chunks +86 lines, -9 lines 0 comments Download
M tools/dom/scripts/systemnative.py View 1 2 3 4 5 14 chunks +144 lines, -39 lines 0 comments Download
M tools/dom/src/native_DOMImplementation.dart View 1 2 3 4 5 2 chunks +5 lines, -5 lines 0 comments Download
M tools/dom/templates/html/dartium/html_dartium.darttemplate View 1 2 3 4 5 4 chunks +194 lines, -0 lines 0 comments Download
M tools/dom/templates/html/dartium/indexed_db_dartium.darttemplate View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M tools/dom/templates/html/dartium/svg_dartium.darttemplate View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M tools/dom/templates/html/dartium/web_audio_dartium.darttemplate View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M tools/dom/templates/html/dartium/web_gl_dartium.darttemplate View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M tools/dom/templates/html/dartium/web_sql_dartium.darttemplate View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download
M tools/dom/templates/html/impl/impl_CSSStyleDeclaration.darttemplate View 1 2 3 4 5 4 chunks +37 lines, -1 line 0 comments Download
M tools/dom/templates/html/impl/impl_Document.darttemplate View 1 2 3 4 5 2 chunks +14 lines, -6 lines 0 comments Download
M tools/dom/templates/html/impl/impl_DocumentFragment.darttemplate View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download
M tools/dom/templates/html/impl/impl_Element.darttemplate View 1 2 3 4 5 4 chunks +92 lines, -14 lines 0 comments Download
M tools/dom/templates/html/impl/impl_FileReader.darttemplate View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M tools/dom/templates/html/impl/impl_MutationObserver.darttemplate View 1 2 3 4 5 1 chunk +24 lines, -0 lines 0 comments Download
M tools/dom/templates/html/impl/impl_Node.darttemplate View 1 2 3 4 5 1 chunk +45 lines, -0 lines 0 comments Download
M tools/dom/templates/html/impl/impl_Touch.darttemplate View 1 2 3 4 5 1 chunk +8 lines, -8 lines 0 comments Download
M tools/dom/templates/html/impl/impl_Window.darttemplate View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 7 (1 generated)
terry
Added code to support JS Interop for Dartium dart:xxx libraries (accessing the DOM). Currrently, this ...
5 years, 5 months ago (2015-07-08 19:22:11 UTC) #2
vsm
https://codereview.chromium.org/1173403004/diff/30001/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart File sdk/lib/indexed_db/dartium/indexed_db_dartium.dart (right): https://codereview.chromium.org/1173403004/diff/30001/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart#newcode94 sdk/lib/indexed_db/dartium/indexed_db_dartium.dart:94: bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical(this, ...
5 years, 5 months ago (2015-07-08 20:01:58 UTC) #3
terry
PTAL https://codereview.chromium.org/1173403004/diff/30001/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart File sdk/lib/indexed_db/dartium/indexed_db_dartium.dart (right): https://codereview.chromium.org/1173403004/diff/30001/sdk/lib/indexed_db/dartium/indexed_db_dartium.dart#newcode94 sdk/lib/indexed_db/dartium/indexed_db_dartium.dart:94: bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || ...
5 years, 5 months ago (2015-07-13 16:31:22 UTC) #4
terry
PTAL https://codereview.chromium.org/1173403004/diff/30001/tools/dom/scripts/css_code_generator.py File tools/dom/scripts/css_code_generator.py (right): https://codereview.chromium.org/1173403004/diff/30001/tools/dom/scripts/css_code_generator.py#newcode327 tools/dom/scripts/css_code_generator.py:327: $if DART2JS On 2015/07/08 20:01:58, vsm wrote: > ...
5 years, 5 months ago (2015-07-13 16:38:13 UTC) #5
terry
Committed patchset #7 (id:60001) manually as 4947e570d47bb72a057a2069e83b4e80f48468a3 (presubmit successful).
5 years, 5 months ago (2015-07-13 19:38:29 UTC) #6
Paul Berry
5 years, 5 months ago (2015-07-14 06:09:25 UTC) #7
Message was sent while issue was closed.
On 2015/07/13 19:38:29, terry wrote:
> Committed patchset #7 (id:60001) manually as
> 4947e570d47bb72a057a2069e83b4e80f48468a3 (presubmit successful).

This commit appears to be the source of analysis server errors, e.g.: python
tools/test.py -mrelease -cdart2analyzer -rnone --write-debug-log
--write-test-outcome-log -t240 co19/LayoutTests/fast/xpath/attr-namespace_t02

Which produces the following output:

Test configuration: dart2analyzer_none_release_ia32

FAILED: dart2analyzer-none release_ia32
co19/LayoutTests/fast/xpath/attr-namespace_t02
Expected: Pass 
Actual: StaticWarning
CommandOutput[dart2analyzer]:

stderr:
WARNING|STATIC_WARNING|NON_ABSTRACT_CLASS_INHERITS_ABSTRACT_MEMBER_TWO|/Users/paulberry/dart-new/sdk/tests/co19/src/LayoutTests/fast/xpath/attr-namespace_t02.dart|14|7|17|Missing
concrete implementation of setter 'XPathNSResolver.blink_jsObject' and getter
'XPathNSResolver.blink_jsObject'


Command[dart2analyzer]: DART_CONFIGURATION=ReleaseIA32 sdk/bin/dartanalyzer
--ignore-unrecognized-flags --show-package-warnings --enable-async
--package-root=xcodebuild/ReleaseIA32/packages/ --machine --no-hints
/Users/paulberry/dart-new/sdk/tests/co19/src/LayoutTests/fast/xpath/attr-namespace_t02.dart
Took 0:00:05.488000

Short reproduction command (experimental):
    python tools/test.py -mrelease -cdart2analyzer -rnone --write-debug-log
--write-test-outcome-log -t240 co19/LayoutTests/fast/xpath/attr-namespace_t02


It appears that this co19 test relies on being able to implement the interface
of XPathNSResolver, which is broken by the addition of the field blink_jsObject.


A total of 9 tests are currently failing, all with similar error messages.  I'm
not familiar enough with the code to know whether these are genuine problems or
whether the tests are bad, so I would appreciate your opinion.  You can see the
full list here:
http://build.chromium.org/p/client.dart/builders/analyzer_experimental-linux-...

Powered by Google App Engine
This is Rietveld 408576698