Fix tests affected by recent refactoring
This commit is contained in:
parent
5b3f05bdc1
commit
42a79ba8e6
|
|
@ -127,7 +127,12 @@
|
||||||
// functions, and for invoking them with automatic argument/result marshalling.
|
// functions, and for invoking them with automatic argument/result marshalling.
|
||||||
// But since this project is trying to test low-level Mono runtime capabilities,
|
// But since this project is trying to test low-level Mono runtime capabilities,
|
||||||
// we implement our own marshalling here.
|
// we implement our own marshalling here.
|
||||||
window.__blazorRegisteredFunctions = {
|
window.Blazor = {
|
||||||
|
platform: {
|
||||||
|
monoGetRegisteredFunction: function (name) { return blazorRegisteredFunctions[name]; }
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var blazorRegisteredFunctions = {
|
||||||
evaluateJsExpression: function (dotNetStringExpression) {
|
evaluateJsExpression: function (dotNetStringExpression) {
|
||||||
var result = eval(dotnetStringToJavaScriptString(dotNetStringExpression));
|
var result = eval(dotnetStringToJavaScriptString(dotNetStringExpression));
|
||||||
return result === null || result === undefined
|
return result === null || result === undefined
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue