Fix tests affected by recent refactoring

This commit is contained in:
Steve Sanderson 2018-01-12 13:07:16 +00:00
parent 5b3f05bdc1
commit 42a79ba8e6
1 changed files with 6 additions and 1 deletions

View File

@ -127,7 +127,12 @@
// functions, and for invoking them with automatic argument/result marshalling.
// But since this project is trying to test low-level Mono runtime capabilities,
// we implement our own marshalling here.
window.__blazorRegisteredFunctions = {
window.Blazor = {
platform: {
monoGetRegisteredFunction: function (name) { return blazorRegisteredFunctions[name]; }
}
};
var blazorRegisteredFunctions = {
evaluateJsExpression: function (dotNetStringExpression) {
var result = eval(dotnetStringToJavaScriptString(dotNetStringExpression));
return result === null || result === undefined