| Index: third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js
|
| diff --git a/third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js b/third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js
|
| index 20016947a011603c8af0655944e24589838525b9..d23a82e3d1d1e83ca0ecc3623833b583a1a89f77 100644
|
| --- a/third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js
|
| +++ b/third_party/WebKit/LayoutTests/http/tests/inspector/console-test.js
|
| @@ -394,19 +394,14 @@ InspectorTest.waitUntilNthMessageReceivedPromise = function(count)
|
|
|
| InspectorTest.changeExecutionContext = function(namePrefix)
|
| {
|
| - var selector = Console.ConsoleView.instance()._consoleContextSelector._selectElement;
|
| - var option = selector.firstChild;
|
| - while (option) {
|
| - if (option.textContent && option.textContent.trim().startsWith(namePrefix))
|
| - break;
|
| - option = option.nextSibling;
|
| - }
|
| - if (!option) {
|
| - InspectorTest.addResult("FAILED: context with prefix: " + namePrefix + " not found in the context list");
|
| - return;
|
| + var selector = Console.ConsoleView.instance()._consoleContextSelector;
|
| + for (var executionContext of selector._list._items) {
|
| + if (selector._titleFor(executionContext).startsWith(namePrefix)) {
|
| + UI.context.setFlavor(SDK.ExecutionContext, executionContext);
|
| + return;
|
| + }
|
| }
|
| - option.selected = true;
|
| - Console.ConsoleView.instance()._consoleContextSelector._executionContextChanged();
|
| + InspectorTest.addResult("FAILED: context with prefix: " + namePrefix + " not found in the context list");
|
| }
|
|
|
| InspectorTest.waitForConsoleMessages = function(expectedCount, callback)
|
|
|