1// Copyright 2013 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5(function() { 6 if (window.parent != window) // Ignore subframes. 7 return; 8 9 var domAutomationController = {}; 10 11 domAutomationController._succeeded = false; 12 13 domAutomationController.setAutomationId = function(id) {}; 14 15 domAutomationController.send = function(msg) { 16 msg = msg.toLowerCase(); 17 if (msg == "success") 18 domAutomationController._succeeded = true; 19 else 20 domAutomationController._succeeded = false; 21 }; 22 23 window.domAutomationController = domAutomationController; 24})(); 25