summaryrefslogtreecommitdiffstats
path: root/chrome/test/functional/test_basic.py
blob: 1470dd2dd34554987345329e9b5363735388a735 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/python
# Copyright (c) 2011 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 unittest

import pyauto_functional
import pyauto


class SimpleTest(pyauto.PyUITest):

  def testCanOpenGoogle(self):
    """Navigate to Google."""
    self.NavigateToURL("http://www.google.com")

  def testHTTP(self):
    """Basic test over local http server."""
    url = self.GetHttpURLForDataPath('english_page.html')
    self.NavigateToURL(url)
    self.assertEqual('This page is in English', self.GetActiveTabTitle())


if __name__ == '__main__':
  pyauto_functional.Main()