Skip to content

Commit 4422c63

Browse files
committed
Use resource loading to enable iframe contents
1 parent 4f9bc84 commit 4422c63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AngleSharp.Scripting.JavaScript.Tests/ScriptEvalTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public async Task PerformXmlHttpRequestAsynchronousToDelayedResponseShouldWork()
128128
[Test]
129129
public async Task SetContentOfIFrameElement()
130130
{
131-
var cfg = Configuration.Default.WithJavaScript();
131+
var cfg = Configuration.Default.WithJavaScript().WithDefaultLoader(m => m.IsResourceLoadingEnabled = true);
132132
var html = @"<!doctype html><iframe id=myframe srcdoc=''></iframe><script>
133133
var iframe = document.querySelector('#myframe');
134134
var doc = iframe.contentWindow.document;

0 commit comments

Comments
 (0)