Ai
2 Star 0 Fork 0

chromium_develop/chromium_tools

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
upload_screenshots_unittest.py 909 Bytes
一键复制 编辑 原始数据 按行查看 历史
李想 提交于 2022-08-16 16:29 +08:00 . chromium origin init
#!/usr/bin/env python
# Copyright 2018 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 os
import sys
here = os.path.realpath(__file__)
testdata_path = os.path.normpath(os.path.join(here, '..', 'testdata'))
import upload_screenshots
class UploadTests(unittest.TestCase):
def test_find_screenshots(self):
screenshots = upload_screenshots.find_screenshots(
testdata_path,
os.path.join(testdata_path, 'translation_expectations.pyl'))
self.assertEquals(2, len(screenshots))
self.assertEquals(
os.path.join(testdata_path, 'test_grd', 'IDS_TEST_STRING1.png'),
screenshots[0])
self.assertEquals(
os.path.join(testdata_path, 'part_grdp', 'IDS_PART_STRING2.png'),
screenshots[1])
if __name__ == '__main__':
unittest.main()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/chromium_develop/chromium_tools.git
git@gitee.com:chromium_develop/chromium_tools.git
chromium_develop
chromium_tools
chromium_tools
master

搜索帮助