diff options
author | nirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-08 08:46:47 +0000 |
---|---|---|
committer | nirnimesh@chromium.org <nirnimesh@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-08 08:46:47 +0000 |
commit | 25d7d7927f2695b68ef4bd46d6d186884f7276ad (patch) | |
tree | 35d9034e949b1c558e1546834a5c27526f5b4052 | |
parent | ed37e737534242e898dd82ef61cfdca2430181bc (diff) | |
download | chromium_src-25d7d7927f2695b68ef4bd46d6d186884f7276ad.zip chromium_src-25d7d7927f2695b68ef4bd46d6d186884f7276ad.tar.gz chromium_src-25d7d7927f2695b68ef4bd46d6d186884f7276ad.tar.bz2 |
Fix missing find_in_page.py
Really fix the missing find_in_page.py this time.
Originally reviewed at http://codereview.chromium.org/3402021
r61898 which I submitted on behalf of amolk missed this file.
BUG=36177
TEST=find_in_page.py
TBR=
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61930 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/test/functional/find_in_page.py | 116 |
1 files changed, 0 insertions, 116 deletions
diff --git a/chrome/test/functional/find_in_page.py b/chrome/test/functional/find_in_page.py index f1e31bb..3d4f359 100644 --- a/chrome/test/functional/find_in_page.py +++ b/chrome/test/functional/find_in_page.py @@ -27,119 +27,3 @@ class FindMatchTests(pyauto.PyUITest): if __name__ == '__main__': pyauto_functional.Main() -#!/usr/bin/python -# Copyright (c) 2010 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. - -import os -import unittest - -import pyauto_functional -import pyauto - - -class FindMatchTests(pyauto.PyUITest): - - def testCanFindMatchCount(self): - """Verify Find match count for valid search""" - url = self.GetFileURLForPath(os.path.join(self.DataDir(), 'title1.html')) - self.NavigateToURL(url) - self.assertEqual(1, self.FindInPage('title')['match_count']) - - def testCanFindMatchCountFail(self): - """Verify Find match count for invalid search""" - url = self.GetFileURLForPath(os.path.join(self.DataDir(), 'title1.html')) - self.NavigateToURL(url) - self.assertEqual(0, self.FindInPage('blah')['match_count']) - - -if __name__ == '__main__': - pyauto_functional.Main() -#!/usr/bin/python -# Copyright (c) 2010 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. - -import os -import unittest - -import pyauto_functional -import pyauto - - -class FindMatchTests(pyauto.PyUITest): - - def testCanFindMatchCount(self): - """Verify Find match count for valid search""" - url = self.GetFileURLForPath(os.path.join(self.DataDir(), 'title1.html')) - self.NavigateToURL(url) - self.assertEqual(1, self.GetMatchCountForSearch('title')['match_count']) - - def testCanFindMatchCountFail(self): - """Verify Find match count for invalid search""" - url = self.GetFileURLForPath(os.path.join(self.DataDir(), 'title1.html')) - self.NavigateToURL(url) - self.assertEqual(0, self.FindInPage('blah')['match_count']) - - -if __name__ == '__main__': - pyauto_functional.Main() -#!/usr/bin/python -# Copyright (c) 2010 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. - -import os -import unittest - -import pyauto_functional -import pyauto - - -class FindMatchTests(pyauto.PyUITest): - - def testCanFindMatchCount(self): - """Verify Find match count for valid search""" - url = self.GetFileURLForPath(os.path.join(self.DataDir(), 'title1.html')) - self.NavigateToURL(url) - self.assertEqual(1, self.GetMatchCountForSearch('title')['match_count']) - - def testCanFindMatchCountFail(self): - """Verify Find match count for invalid search""" - url = self.GetFileURLForPath(os.path.join(self.DataDir(), 'title1.html')) - self.NavigateToURL(url) - self.assertEqual(0, self.FindInPage('blah')['match_count']) - - -if __name__ == '__main__': - pyauto_functional.Main() -#!/usr/bin/python -# Copyright (c) 2010 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. - -import os -import unittest - -import pyauto_functional -import pyauto - - -class FindMatchTests(pyauto.PyUITest): - - def testCanFindMatchCount(self): - """Verify Find match count for valid search""" - url = self.GetFileURLForPath(os.path.join(self.DataDir(), 'title1.html')) - self.NavigateToURL(url) - self.assertEqual(1, self.GetMatchCountForSearch('title')['match_count']) - - def testCanFindMatchCountFail(self): - """Verify Find match count for invalid search""" - url = self.GetFileURLForPath(os.path.join(self.DataDir(), 'title1.html')) - self.NavigateToURL(url) - self.assertEqual(0, self.FindInPage('blah')['match_count']) - - -if __name__ == '__main__': - pyauto_functional.Main() |