Add XSLTProcessor constructor

Fixes Issue 1642 for Frog.
Implementation needed for Dartium.

BUG=
TEST=

Review URL: https://chromiumcodereview.appspot.com//9391029

git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@4205 260f80e4-7a28-3924-810f-c04153c831b5
This commit is contained in:
sra@google.com
2012-02-14 02:00:45 +00:00
parent f8468f64a8
commit 6e7bcb52f0
10 changed files with 58 additions and 2 deletions
+8 -1
View File
@@ -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.
@@ -4,7 +4,9 @@
// WARNING: Do not edit - generated code.
interface XSLTProcessor {
interface XSLTProcessor default _XSLTProcessorFactoryProvider {
XSLTProcessor();
void clearParameters();
@@ -80,3 +80,8 @@ class _XMLHttpRequestFactoryProvider {
factory XMLHttpRequest() => _dummy();
}
class _XSLTProcessorFactoryProvider {
factory XSLTProcessor() => _dummy();
}
@@ -91,3 +91,8 @@ class _XMLHttpRequestFactoryProvider {
factory XMLHttpRequest() native '''return new XMLHttpRequest();''';
}
class _XSLTProcessorFactoryProvider {
factory XSLTProcessor() native '''return new XSLTProcessor();''';
}
@@ -63,3 +63,7 @@ class _WebSocketFactoryProvider {
class _XMLHttpRequestFactoryProvider {
factory XMLHttpRequest() => FactoryProviderImplementation.createXMLHttpRequest();
}
class _XSLTProcessorFactoryProvider {
factory XSLTProcessor() => FactoryProviderImplementation.createXSLTProcessor();
}
@@ -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";
}
@@ -101,3 +101,10 @@ class _XMLHttpRequestFactoryProvider {
static XMLHttpRequest create() native;
}
class _XSLTProcessorFactoryProvider {
factory XSLTProcessor() { return create(); }
static XSLTProcessor create() native;
}
@@ -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}
+1
View File
@@ -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.
@@ -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);
});
}