Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9161)

Unified Diff: chrome/test/functional/perf/endure_graphs/js/dom_utils.js

Issue 222873002: Remove pyauto tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sync Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/functional/perf/endure_graphs/js/dom_utils.js
===================================================================
--- chrome/test/functional/perf/endure_graphs/js/dom_utils.js (revision 261231)
+++ chrome/test/functional/perf/endure_graphs/js/dom_utils.js (working copy)
@@ -1,43 +0,0 @@
-/*
- Copyright (c) 2012 The Chromium Authors. All rights reserved.
- Use of this source code is governed by a BSD-style license that can be
- found in the LICENSE file.
-*/
-
-/**
- * @fileoverview Collection of functions which operate on DOM.
- */
-
-var domUtils = window['domUtils'] || {};
-
-/**
- * Returns pageX and pageY of the given element.
- *
- * @param {Element} element An element of which the top-left position is to be
- * returned in the coordinate system of the document page.
- * @return {Object} A point object which has {@code x} and {@code y} fields.
- */
-domUtils.pageXY = function(element) {
- var x = 0, y = 0;
- for (; element; element = element.offsetParent) {
- x += element.offsetLeft;
- y += element.offsetTop;
- }
- return {'x': x, 'y': y};
-};
-
-/**
- * Returns pageX and pageY of the given event.
- *
- * @param {Event} event An event of which the position is to be returned in
- * the coordinate system of the document page.
- * @return {Object} A point object which has {@code x} and {@code y} fields.
- */
-domUtils.pageXYOfEvent = function(event) {
- return (event.pageX != null && event.pageY != null) ?
- {'x': event.pageX, 'y': event.pageY} :
- {'x': event.clientX + document.body.scrollLeft +
- document.documentElement.scrollLeft,
- 'y': event.clientY + document.body.scrollTop +
- document.documentElement.scrollTop};
-};

Powered by Google App Engine
This is Rietveld 408576698