Skip to content

Commit 146a437

Browse files
authored
Add max payload test (#1209)
1 parent 90e965e commit 146a437

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/PuppeteerSharp.Tests/PageTests/EvaluateTests.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,16 @@ public async Task ShouldNotThrowAnErrorWhenEvaluationDoesANavigation()
289289
Assert.Equal(new[] { 42 }, result);
290290
}
291291

292+
/// <summary>
293+
/// Original Name "should transfer 100Mb of data from page to node.js"
294+
/// </summary>
295+
[Fact]
296+
public async Task ShouldTransfer100MbOfDataFromPage()
297+
{
298+
var a = await Page.EvaluateFunctionAsync<string>("() => Array(100 * 1024 * 1024 + 1).join('a')");
299+
Assert.Equal(100 * 1024 * 1024, a.Length);
300+
}
301+
292302
[Fact]
293303
public async Task ShouldWorkWithDifferentSerializerSettings()
294304
{

0 commit comments

Comments
 (0)