Skip to content
Permalink
Browse files

Add max payload test (#1209)

  • Loading branch information...
kblok committed Jul 14, 2019
1 parent 90e965e commit 146a437eef6376350098282534de2ede1c45c287
Showing with 10 additions and 0 deletions.
  1. +10 −0 lib/PuppeteerSharp.Tests/PageTests/EvaluateTests.cs
@@ -289,6 +289,16 @@ public async Task ShouldNotThrowAnErrorWhenEvaluationDoesANavigation()
Assert.Equal(new[] { 42 }, result);
}

/// <summary>
/// Original Name "should transfer 100Mb of data from page to node.js"
/// </summary>
[Fact]
public async Task ShouldTransfer100MbOfDataFromPage()
{
var a = await Page.EvaluateFunctionAsync<string>("() => Array(100 * 1024 * 1024 + 1).join('a')");
Assert.Equal(100 * 1024 * 1024, a.Length);
}

[Fact]
public async Task ShouldWorkWithDifferentSerializerSettings()
{

0 comments on commit 146a437

Please sign in to comment.
You can’t perform that action at this time.