toolkit/components/microformats/test/marionette/test_standards.py
author Shane Caraveo <scaraveo@mozilla.com>
Wed, 03 Aug 2016 10:21:09 -0700
changeset 350716 0eb418434f75ee9fdde015cc30dad119e1023ac8
parent 320593 ed69cf9c7396135de51ae9f620e851308fd4a34b
permissions -rw-r--r--
Bug 1262705 - Fix root path for microformats test class. r=mkaply, a=test-only MozReview-Commit-ID: KvTsnmuHbx4

# Code example copied from mozilla-central/browser/components/loop/
# need to get this dir in the path so that we make the import work
import os
import sys
sys.path.append(os.path.normpath(os.path.join(os.path.dirname(__file__), '..', 'marionette')))

from microformats_tester import BaseTestFrontendUnits


class TestStandardsUnits(BaseTestFrontendUnits):

    def setUp(self):
        super(TestStandardsUnits, self).setUp()
        self.set_server_prefix("/test/standards-tests/")

    def test_units(self):
        self.check_page("index.html")