Commit 62a53971 authored by Jack Franklin's avatar Jack Franklin Committed by Commit Bot

Remove use of toTitleCase in layout tests

It's a method that's added to the String prototype by DevTools frontend,
but we are removing that in a CL [1]. The layout tests need to be
updated to not depend on it. They don't need the expression to be in
title case so we'll just change the tests to use the expression as is.

[1]: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/2193590

Change-Id: I7ac36003423ded30ec42072a0667d66af590215c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2195962
Commit-Queue: Jack Franklin <jacktfranklin@chromium.org>
Reviewed-by: default avatarTim van der Lippe <tvanderlippe@chromium.org>
Cr-Commit-Position: refs/heads/master@{#767773}
parent 77b7b10c
Tests that Debugger.getGeneratorObjectDetails command returns correct result.
Running: testIterNotStarted
Running: testiterNotStarted
iterNotStarted: type = object, subtype = generator
lineNumber = 17
columnNumber = 19
......@@ -16,7 +16,7 @@ script is valid: yes
[[GeneratorReceiver]] = Window
[[Scopes]] = Scopes[2]
Running: testIterSuspended
Running: testiterSuspended
iterSuspended: type = object, subtype = generator
lineNumber = 19
columnNumber = 10
......@@ -31,7 +31,7 @@ script is valid: yes
[[GeneratorReceiver]] = Window
[[Scopes]] = Scopes[2]
Running: testIterClosed
Running: testiterClosed
iterClosed: type = object, subtype = generator
lineNumber = 17
columnNumber = 19
......@@ -45,7 +45,7 @@ script is valid: yes
}
[[GeneratorReceiver]] = Window
Running: testIterObjGenerator
Running: testiterObjGenerator
iterObjGenerator: type = object, subtype = generator
lineNumber = 28
columnNumber = 14
......@@ -60,7 +60,7 @@ script is valid: yes
[[GeneratorReceiver]] = Object
[[Scopes]] = Scopes[2]
Running: testAnonymousGenIter
Running: testanonymousGenIter
anonymousGenIter: type = object, subtype = generator
lineNumber = 42
columnNumber = 10
......
......@@ -86,7 +86,7 @@
];
function createTestSuiteFunction(expression) {
var functionName = 'test' + expression.toTitleCase();
var functionName = 'test' + expression;
return eval(
'function ' + functionName + '(next)\n' +
'{\n' +
......
Tests that "Show Generator Location" jumps to the correct location.
Running: testIterNotStarted
Running: testiterNotStarted
Generator location revealed: [17:20]
Running: testIterSuspended1
Running: testiterSuspended1
Generator location revealed: [19:11]
Running: testIterSuspended2
Running: testiterSuspended2
Generator location revealed: [20:11]
Running: testIterSuspended3
Running: testiterSuspended3
Generator location revealed: [21:11]
Running: testIterClosed
Running: testiterClosed
Generator location revealed: [17:20]
......@@ -66,7 +66,7 @@
];
function createTestSuiteFunction(expression) {
var functionName = 'test' + expression.toTitleCase();
var functionName = 'test' + expression;
return eval(
'function ' + functionName + '(next)\n' +
'{\n' +
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment