diff --git a/client/dom/frog/dom_frog.dart b/client/dom/frog/dom_frog.dart index 2671043a042..b2ad8d269f3 100644 --- a/client/dom/frog/dom_frog.dart +++ b/client/dom/frog/dom_frog.dart @@ -22691,7 +22691,9 @@ interface XPathResult { // WARNING: Do not edit - generated code. -interface XSLTProcessor { +interface XSLTProcessor default _XSLTProcessorFactoryProvider { + + XSLTProcessor(); void clearParameters(); @@ -23451,6 +23453,11 @@ class _XMLHttpRequestFactoryProvider { factory XMLHttpRequest() native '''return new XMLHttpRequest();'''; } + +class _XSLTProcessorFactoryProvider { + + factory XSLTProcessor() native '''return new XSLTProcessor();'''; +} // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file // for details. All rights reserved. Use of this source code is governed by a // BSD-style license that can be found in the LICENSE file. diff --git a/client/dom/generated/src/interface/XSLTProcessor.dart b/client/dom/generated/src/interface/XSLTProcessor.dart index 21e1ca8cb4f..53ac2872d93 100644 --- a/client/dom/generated/src/interface/XSLTProcessor.dart +++ b/client/dom/generated/src/interface/XSLTProcessor.dart @@ -4,7 +4,9 @@ // WARNING: Do not edit - generated code. -interface XSLTProcessor { +interface XSLTProcessor default _XSLTProcessorFactoryProvider { + + XSLTProcessor(); void clearParameters(); diff --git a/client/dom/src/dummy_FactoryProviders.dart b/client/dom/src/dummy_FactoryProviders.dart index a5aed1f2a45..a00cd180f59 100644 --- a/client/dom/src/dummy_FactoryProviders.dart +++ b/client/dom/src/dummy_FactoryProviders.dart @@ -80,3 +80,8 @@ class _XMLHttpRequestFactoryProvider { factory XMLHttpRequest() => _dummy(); } + +class _XSLTProcessorFactoryProvider { + + factory XSLTProcessor() => _dummy(); +} diff --git a/client/dom/src/frog_FactoryProviders.dart b/client/dom/src/frog_FactoryProviders.dart index 9df968984e9..477e9cd5ca7 100644 --- a/client/dom/src/frog_FactoryProviders.dart +++ b/client/dom/src/frog_FactoryProviders.dart @@ -91,3 +91,8 @@ class _XMLHttpRequestFactoryProvider { factory XMLHttpRequest() native '''return new XMLHttpRequest();'''; } + +class _XSLTProcessorFactoryProvider { + + factory XSLTProcessor() native '''return new XSLTProcessor();'''; +} diff --git a/client/dom/src/native_FactoryProviders.dart b/client/dom/src/native_FactoryProviders.dart index 4462ce8b526..6f5bc5c714e 100644 --- a/client/dom/src/native_FactoryProviders.dart +++ b/client/dom/src/native_FactoryProviders.dart @@ -63,3 +63,7 @@ class _WebSocketFactoryProvider { class _XMLHttpRequestFactoryProvider { factory XMLHttpRequest() => FactoryProviderImplementation.createXMLHttpRequest(); } + +class _XSLTProcessorFactoryProvider { + factory XSLTProcessor() => FactoryProviderImplementation.createXSLTProcessor(); +} diff --git a/client/dom/src/native_FactoryProvidersImplementation.dart b/client/dom/src/native_FactoryProvidersImplementation.dart index 25d2680e59c..93636f7f41d 100644 --- a/client/dom/src/native_FactoryProvidersImplementation.dart +++ b/client/dom/src/native_FactoryProvidersImplementation.dart @@ -20,4 +20,5 @@ class FactoryProviderImplementation { static WebKitPoint createWebKitPoint(num x, num y) native "WebKitPoint_constructor_Callback"; static WebSocket createWebSocket(String url) native "WebSocket_constructor_Callback"; static XMLHttpRequest createXMLHttpRequest() native "XMLHttpRequest_constructor_Callback"; + static XSLTProcessor createXSLTProcessor() native "XSLTProcessor_constructor_Callback"; } diff --git a/client/dom/src/wrapping_FactoryProviders.dart b/client/dom/src/wrapping_FactoryProviders.dart index 938d1bfe1a2..449543a6303 100644 --- a/client/dom/src/wrapping_FactoryProviders.dart +++ b/client/dom/src/wrapping_FactoryProviders.dart @@ -101,3 +101,10 @@ class _XMLHttpRequestFactoryProvider { static XMLHttpRequest create() native; } + +class _XSLTProcessorFactoryProvider { + + factory XSLTProcessor() { return create(); } + + static XSLTProcessor create() native; +} diff --git a/client/dom/templates/dom/interface/interface_XSLTProcessor.darttemplate b/client/dom/templates/dom/interface/interface_XSLTProcessor.darttemplate new file mode 100644 index 00000000000..46429b2dc57 --- /dev/null +++ b/client/dom/templates/dom/interface/interface_XSLTProcessor.darttemplate @@ -0,0 +1,10 @@ +// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file +// for details. All rights reserved. Use of this source code is governed by a +// BSD-style license that can be found in the LICENSE file. + +// WARNING: Do not edit - generated code. + +interface XSLTProcessor$!EXTENDS default _XSLTProcessorFactoryProvider { + + XSLTProcessor(); +$!MEMBERS} diff --git a/client/tests/client/client.status b/client/tests/client/client.status index cc72190c5b0..44b20ad65d5 100644 --- a/client/tests/client/client.status +++ b/client/tests/client/client.status @@ -17,6 +17,7 @@ dom/NativeGCTest: Fail # Issue 1448. dom/TypingTest: Fail dom/XHRTest: Fail dom/WebSocketTest: Fail +dom/XSLTProcessorTest: Fail # Issue 1642 - implement constructor. [ $component == dartium && $mode == debug ] # TODO(vsm): Triage Dartium failures. diff --git a/client/tests/client/dom/XSLTProcessorTest.dart b/client/tests/client/dom/XSLTProcessorTest.dart new file mode 100644 index 00000000000..e61ec082a06 --- /dev/null +++ b/client/tests/client/dom/XSLTProcessorTest.dart @@ -0,0 +1,14 @@ +#library('XSLTProcessorTest'); +#import('../../../testing/unittest/unittest.dart'); +#import('dart:dom'); + +main() { + + forLayoutTests(); + + test('constructorTest', () { + var processor = new XSLTProcessor(); + Expect.isTrue(processor != null); + Expect.isTrue(processor is XSLTProcessor); + }); +}