Adapt test expectations in webkit.

R=machenbach@chromium.org

Review URL: https://codereview.chromium.org/288163003

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@21331 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
yangguo@chromium.org 2014-05-15 12:46:32 +00:00
parent 1d0db84277
commit 773a7eda67
3 changed files with 10 additions and 5 deletions

View File

@ -21,3 +21,12 @@
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
This tests that string replacement with a large replacement string causes an out-of-memory exception. See bug 102956 for more details.
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS x.replace(/\d/g, y) threw exception RangeError: Invalid string length.
PASS successfullyParsed is true
TEST COMPLETE

View File

@ -37,5 +37,5 @@ var y = "2";
x = createStringWithRepeatedChar(x, 1 << 12);
y = createStringWithRepeatedChar(y, (1 << 20) + 1);
shouldThrow("x.replace(/\\d/g, y)", '"Error: Out of memory"');
shouldThrow("x.replace(/\\d/g, y)", '"RangeError: Invalid string length"');
var successfullyParsed = true;

View File

@ -27,10 +27,6 @@
[
[ALWAYS, {
# BUG(237872). TODO(bmeurer): Investigate.
'string-replacement-outofmemory': [FAIL],
##############################################################################
# Flaky tests.
# BUG(v8:2989).
'dfg-inline-arguments-become-double': [PASS, FAIL],