Update test cases to pass with current generation.

This commit is contained in:
Kenneth Pouncey 2018-10-29 11:06:00 +01:00
Родитель a7b1f0b476
Коммит ca6725b21a
16 изменённых файлов: 28 добавлений и 28 удалений

Просмотреть файл

@ -1,7 +1,7 @@
public interface IAudioListener {
}
[Export("AudioListener", typeof(Mono.WebAssembly.JSObject))]
[Export("AudioListener", typeof(JSObject))]
public sealed class AudioListener : JSObject
{
internal AudioListener (int handle) : base (handle) {}

Просмотреть файл

@ -11,7 +11,7 @@ public interface IAudioListener {
void SetVelocity(double x, double y, double z);
}
[Export("AudioListener", typeof(Mono.WebAssembly.JSObject))]
[Export("AudioListener", typeof(JSObject))]
public sealed class AudioListener : JSObject
{
internal AudioListener (int handle) : base (handle) {}

Просмотреть файл

@ -13,7 +13,7 @@ public interface IErrorEvent : IEvent {
void InitErrorEvent(string typeArg, bool canBubbleArg, bool cancelableArg, string messageArg, string filenameArg, double linenoArg);
}
[Export("ErrorEvent", typeof(Mono.WebAssembly.JSObject))]
[Export("ErrorEvent", typeof(JSObject))]
public sealed class ErrorEvent : JSObject {
internal ErrorEvent (int handle) : base (handle) {}
@ -137,7 +137,7 @@ public interface IEvent {
double CapturingPhase { get; }
}
[Export("Event", typeof(Mono.WebAssembly.JSObject))]
[Export("Event", typeof(JSObject))]
public sealed class Event : JSObject {
internal Event (int handle) : base (handle) {}

Просмотреть файл

@ -30,7 +30,7 @@ public interface IURL {
string ToString();
}
[Export("URL", typeof(Mono.WebAssembly.JSObject))]
[Export("URL", typeof(JSObject))]
public sealed class Url : JSObject {
internal URL (int handle) : base (handle) {}
@ -109,7 +109,7 @@ public interface IURLSearchParams {
void Set(string name, string value);
}
[Export("URLSearchParams", typeof(Mono.WebAssembly.JSObject))]
[Export("URLSearchParams", typeof(JSObject))]
public sealed class UrlSearchParams : JSObject {
internal URLSearchParams (int handle) : base (handle) {}
@ -183,7 +183,7 @@ public interface IBlob {
IBlob Slice(double start, double end, string contentType);
}
[Export("Blob", typeof(Mono.WebAssembly.JSObject))]
[Export("Blob", typeof(JSObject))]
public sealed class Blob : JSObject {
internal Blob (int handle) : base (handle) {}
@ -226,7 +226,7 @@ public interface IWindow
IBlob IBlob { get; set; }
}
[Export("Window", typeof(Mono.WebAssembly.JSObject))]
[Export("Window", typeof(JSObject))]
public sealed class Window : JSObject {
internal Window (int handle) : base (handle) {}

Просмотреть файл

@ -1,5 +1,5 @@
using System;
using Mono.WebAssembly;
using WebAssembly;
namespace Hello.World
{
@ -33,7 +33,7 @@ public interface IURL {
string ToString();
}
[Export("URL", typeof(Mono.WebAssembly.JSObject))]
[Export("URL", typeof(JSObject))]
public sealed class Url : JSObject {
internal URL (int handle) : base (handle) {}
@ -112,7 +112,7 @@ public interface IURLSearchParams {
void Set(string name, string value);
}
[Export("URLSearchParams", typeof(Mono.WebAssembly.JSObject))]
[Export("URLSearchParams", typeof(JSObject))]
public sealed class UrlSearchParams : JSObject {
internal URLSearchParams (int handle) : base (handle) {}
@ -186,7 +186,7 @@ public interface IBlob {
IBlob Slice(double start, double end, string contentType);
}
[Export("Blob", typeof(Mono.WebAssembly.JSObject))]
[Export("Blob", typeof(JSObject))]
public sealed class Blob : JSObject {
internal Blob (int handle) : base (handle) {}
@ -229,7 +229,7 @@ public interface IWindow
IBlob IBlob { get; set; }
}
[Export("Window", typeof(Mono.WebAssembly.JSObject))]
[Export("Window", typeof(JSObject))]
public sealed class Window : JSObject {
internal Window (int handle) : base (handle) {}

Просмотреть файл

@ -1,6 +1,6 @@
public interface IAudioListener {
}
[Export("AudioListener", typeof(Mono.WebAssembly.JSObject))]
[Export("AudioListener", typeof(JSObject))]
public sealed class AudioListener : JSObject
{

Просмотреть файл

@ -6,7 +6,7 @@ public interface IFileList {
File this[double index] { get; set; }
}
[Export("FileList", typeof(Mono.WebAssembly.JSObject))]
[Export("FileList", typeof(JSObject))]
public sealed class FileList : JSObject {
internal FileList (int handle) : base (handle) {}

Просмотреть файл

@ -2,7 +2,7 @@
} // Trailing comment of interface defintion.
// This is a leading comment
[Export("AudioListener", typeof(Mono.WebAssembly.JSObject))]
[Export("AudioListener", typeof(JSObject))]
public sealed class AudioListener : JSObject
{ // Here is another comment

Просмотреть файл

@ -5,7 +5,7 @@ public interface IErrorEventInit {
public interface IErrorEvent {
}
[Export("ErrorEvent", typeof(Mono.WebAssembly.JSObject))]
[Export("ErrorEvent", typeof(JSObject))]
public sealed class ErrorEvent : JSObject {
internal ErrorEvent (int handle) : base (handle) {}

Просмотреть файл

@ -24,7 +24,7 @@ public interface IEventTarget {
void RemoveEventListener(string type, DOMEventHandler listener, object options);
}
[Export("EventTarget", typeof(Mono.WebAssembly.JSObject))]
[Export("EventTarget", typeof(JSObject))]
public sealed class EventTarget : JSObject {
internal EventTarget (int handle) : base (handle) {}
@ -137,7 +137,7 @@ public interface IWindow : IEventTarget, IGlobalEventHandlers {
}
[Export("Window", typeof(Mono.WebAssembly.JSObject))]
[Export("Window", typeof(JSObject))]
public sealed class Window : JSObject {
internal Window (int handle) : base (handle) {}

Просмотреть файл

@ -7,7 +7,7 @@ public interface IAudioListener {
void SetVelocity(double x, double y, double z);
}
[Export("AudioListener", typeof(Mono.WebAssembly.JSObject))]
[Export("AudioListener", typeof(JSObject))]
public sealed class AudioListener : JSObject
{
internal AudioListener (int handle) : base (handle) {}

Просмотреть файл

@ -5,7 +5,7 @@ public interface IAudioListener {
double SpeedOfSound { get; set; }
}
[Export("AudioListener", typeof(Mono.WebAssembly.JSObject))]
[Export("AudioListener", typeof(JSObject))]
public sealed class AudioListener : JSObject
{
internal AudioListener (int handle) : base (handle) {}

Просмотреть файл

@ -2,7 +2,7 @@
public interface IRTCSrtpSdesTransport {
}
[Export("RTCSrtpSdesTransport", typeof(Mono.WebAssembly.JSObject))]
[Export("RTCSrtpSdesTransport", typeof(JSObject))]
public sealed class RtcSrtpSdesTransport : JSObject {
internal RTCSrtpSdesTransport (int handle) : base (handle) {}

Просмотреть файл

@ -1,7 +1,7 @@
public interface IPerformanceNavigation {
}
[Export("PerformanceNavigation", typeof(Mono.WebAssembly.JSObject))]
[Export("PerformanceNavigation", typeof(JSObject))]
public sealed class PerformanceNavigation : JSObject {
internal PerformanceNavigation (int handle) : base (handle) {}

Просмотреть файл

@ -28,7 +28,7 @@ public interface IURL {
string ToString();
}
[Export("URL", typeof(Mono.WebAssembly.JSObject))]
[Export("URL", typeof(JSObject))]
public sealed class Url : JSObject {
internal URL (int handle) : base (handle) {}
@ -107,7 +107,7 @@ public interface IURLSearchParams {
void Set(string name, string value);
}
[Export("URLSearchParams", typeof(Mono.WebAssembly.JSObject))]
[Export("URLSearchParams", typeof(JSObject))]
public sealed class UrlSearchParams : JSObject {
internal URLSearchParams (int handle) : base (handle) {}
@ -181,7 +181,7 @@ public interface IBlob {
IBlob Slice(double start, double end, string contentType);
}
[Export("Blob", typeof(Mono.WebAssembly.JSObject))]
[Export("Blob", typeof(JSObject))]
public sealed class Blob : JSObject {
internal Blob (int handle) : base (handle) {}
@ -224,7 +224,7 @@ public interface IWindow
IBlob IBlob { get; set; }
}
[Export("Window", typeof(Mono.WebAssembly.JSObject))]
[Export("Window", typeof(JSObject))]
public sealed class Window : JSObject {
internal Window (int handle) : base (handle) {}

Просмотреть файл

@ -7,7 +7,7 @@ interface EventTarget {
void removeEventListener(string type, DOMEventHandler listener, object options);
}
[Export("EventTarget", typeof(Mono.WebAssembly.JSObject))]
[Export("EventTarget", typeof(JSObject))]
public sealed class EventTarget : JSObject {
internal EventTarget (int handle) : base (handle) {}