Skip to content
Permalink
Browse files

Add correct file test for manifest test

  • Loading branch information...
terracotaPie committed Feb 2, 2018
1 parent bcb4bd2 commit 06e439ef40a8f59c6172b2dcac8f452431a8b845
Showing with 114 additions and 2 deletions.
  1. +109 −0 python/tidy/servo_tidy_tests/manifest-include.ini
  2. +5 −2 python/tidy/servo_tidy_tests/test_tidy.py
@@ -0,0 +1,109 @@
skip: true
[_mozilla]
skip: false
[2dcontext]
skip: false
[cors]
skip: false
[css]
skip: true
[compositing]
skip: false
[CSS2]
skip: false
[css-animations]
skip: false
[css-backgrounds]
skip: false
[css-color]
skip: false
[css-conditional]
skip: false
[css-flexbox]
skip: false
[css-images]
skip: false
[css-style-attr]
skip: false
[css-text]
skip: false
[css-text-decor]
skip: false
[css-transforms]
skip: false
[css-transitions]
skip: false
[css-ui]
skip: false
[css-values]
skip: false
[css-variables]
skip: false
[cssom]
skip: false
[cssom-view]
skip: false
[filter-effects]
skip: false
[geometry]
skip: false
[mediaqueries]
skip: false
[selectors]
skip: false
[custom-elements]
skip: false
[dom]
skip: false
[domparsing]
skip: false
[encoding]
skip: false
[eventsource]
skip: false
[fetch]
skip: false
[FileAPI]
skip: false
[fullscreen]
skip: false
[hr-time]
skip: false
[html]
skip: false
[js]
skip: false
[navigation-timing]
skip: false
[old-tests]
skip: true
[submission]
skip: true
[performance-timeline]
skip: false
[quirks]
skip: false
[referrer-policy]
skip: false
[subresource-integrity]
skip: false
[touch-events]
skip: false
[uievents]
skip: false
[url]
skip: false
[WebCryptoAPI]
skip: false
[webgl]
skip: false
[WebIDL]
skip: false
[websockets]
skip: false
[webstorage]
skip: false
[workers]
skip: false
[xhr]
skip: false
@@ -33,10 +33,13 @@ def test_tidy_config(self):
self.assertEqual("ignored directory './fake/dir' doesn't exist", errors.next()[2])
self.assertNoMoreErrors(errors)

def test_wpt_manifest_checks(self):
def test_non_existing_wpt_manifest_checks(self):
wrong_path = "/wrong/path.ini"
errors = tidy.check_manifest_dirs(wrong_path)
errors = tidy.check_manifest_dirs(wrong_path, print_text=False)
self.assertEqual("%s manifest file is required but was not found" % wrong_path, errors.next()[2])
self.assertNoMoreErrors(errors)
errors = tidy.check_manifest_dirs(os.path.join(base_path, 'manifest-include.ini'), print_text=False)
self.assertNoMoreErrors(errors)

def test_directory_checks(self):
dirs = {

0 comments on commit 06e439e

Please sign in to comment.
You can’t perform that action at this time.