da54309bf40076e55989b83b873fadafea899d7f
[platform/framework/web/crosswalk.git] / src / third_party / trace-viewer / third_party / tvcm / tvcm / parse_deps_unittest.py
1 #!/usr/bin/env python
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5 """Tests for the parse_deps module."""
6
7 import os
8 import unittest
9
10 from tvcm import project
11 from tvcm import parse_deps
12
13 class CalcLoadSequenceTest(unittest.TestCase):
14   def test_one_toplevel_nodeps(self):
15     load_sequence = parse_deps.calc_load_sequence_internal(
16         [os.path.join('tvcm', 'guid.js')], project.Project())
17     name_sequence = [x.name for x in load_sequence]
18     self.assertEquals(['tvcm.guid'], name_sequence)
19
20
21 if __name__ == '__main__':
22   unittest.main()