Bug 159743 - There should be a way to simulate memory pressure in layout tests
Summary: There should be a way to simulate memory pressure in layout tests
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Andreas Kling
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-07-13 15:36 PDT by Andreas Kling
Modified: 2016-07-18 21:05 PDT (History)
6 users (show)

See Also:


Attachments
Patch (10.33 KB, patch)
2016-07-18 15:22 PDT, Andreas Kling
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Kling 2016-07-13 15:36:00 PDT
I'm adding something like this:

    window.internals.beginSimulatedMemoryPressure()
    window.internals.endSimulatedMemoryPressure()

This will make it possible to write tests for behavior under memory pressure.
Comment 1 Andreas Kling 2016-07-18 15:22:43 PDT
Created attachment 283944 [details]
Patch
Comment 2 WebKit Commit Bot 2016-07-18 16:17:19 PDT
Comment on attachment 283944 [details]
Patch

Clearing flags on attachment: 283944

Committed r203379: <http://trac.webkit.org/changeset/203379>
Comment 3 WebKit Commit Bot 2016-07-18 16:17:23 PDT
All reviewed patches have been landed.  Closing bug.