chromium/chrome/test/data/extensions/api_test/automation/tests/desktop/get_next_text_match.js

// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

var allTests = [
  function testGetMatch() {
    assertTrue(!!rootNode.getNextTextMatch('inner', false), 'Forward error');
    assertTrue(!!rootNode.getNextTextMatch('Inner', false), 'Case error');
    assertFalse(!!rootNode.getNextTextMatch('inner', true), 'No obj expected');
    assertFalse(!!rootNode.getNextTextMatch('asdf', false), 'no obj expected');
    chrome.test.succeed();
  },
];

setUpAndRunTabsTests(allTests, 'iframe_inner.html');