chromium/chrome/test/data/extensions/api_test/automation/tests/tabs/textarea_append_perf.js

// Copyright 2020 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 testTextareaAppend() {
    let runButton = rootNode.find({ role: 'button'});
    assertEq('button', runButton.role);

    let doneLink = rootNode.find({ role: 'link'});
    assertEq('link', doneLink.role);

    rootNode.addEventListener('childrenChanged', (evt) => {
    });

    doneLink.addEventListener('focus', () => {
      chrome.test.succeed();
    });

    runButton.doDefault();
  }
];

setUpAndRunTabsTests(allTests, 'textarea_append.html');