From 42a79ba8e6fcabc71d0f42bce986bbdfe8b2403a Mon Sep 17 00:00:00 2001 From: Steve Sanderson Date: Fri, 12 Jan 2018 13:07:16 +0000 Subject: [PATCH] Fix tests affected by recent refactoring --- samples/MonoSanity/wwwroot/index.html | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/samples/MonoSanity/wwwroot/index.html b/samples/MonoSanity/wwwroot/index.html index 151d945428..dc01913f85 100644 --- a/samples/MonoSanity/wwwroot/index.html +++ b/samples/MonoSanity/wwwroot/index.html @@ -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