提交 7c33481a 编写于 作者: E Eric Seidel

Fix the tests after my previous commit.

This actually makes [Named] work, previously it was
generating invalid dart.

TBR=abarth@chromium.org
BUG=

Review URL: https://codereview.chromium.org/931273002
上级 9aba8037
......@@ -11,7 +11,7 @@ part of sky.core;
{{ '{' if arg.is_named else '[' }}
{%- endif -%}
{{ arg.dart_type }} {{ arg.name }}
{%- if arg.is_optional %} = {{ arg.dart_default_value }}
{%- if arg.is_optional %} {{ ':' if arg.is_named else '='}} {{ arg.dart_default_value }}
{#- TODO(eseidel): This does not support having both optional and named arguments! -#}
{%- if loop.last -%}{{ '}' if arg.is_named else ']' }}{%- endif -%}
{%- endif -%}
......
......@@ -27,7 +27,7 @@
interface ShadowRoot : DocumentFragment {
readonly attribute Element activeElement;
[RaisesException] Node cloneNode([Default=Undefined] optional boolean deep);
[RaisesException] Node cloneNode([Named] optional boolean deep = true);
Selection getSelection();
Element getElementById([Default=Undefined] optional DOMString elementId);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册