Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: third_party/WebKit/Tools/Scripts/webkitpy/tool/servers/reflection_handler_unittest.py

Issue 2801393002: Remove remaining references to SVN. (Closed)
Patch Set: Remove unnecessary test Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/auto_rebaseline.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (C) 2012 Google Inc. All rights reserved. 1 # Copyright (C) 2012 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 self.assertEqual(handler.errors_sent, expected_errors) 89 self.assertEqual(handler.errors_sent, expected_errors)
90 self.assertEqual(handler.functions_run, expected_functions) 90 self.assertEqual(handler.functions_run, expected_functions)
91 91
92 def test_static_content_or_function_switch(self): 92 def test_static_content_or_function_switch(self):
93 self.assert_handler_response(['/test.js'], set(['test.js']), set(), set( )) 93 self.assert_handler_response(['/test.js'], set(['test.js']), set(), set( ))
94 self.assert_handler_response(['/test.js', '/test.css', '/test.html'], 94 self.assert_handler_response(['/test.js', '/test.css', '/test.html'],
95 set(['test.js', 'test.html', 'test.css']), set(), set()) 95 set(['test.js', 'test.html', 'test.css']), set(), set())
96 self.assert_handler_response(['/test.js', '/test.exe', '/testhtml'], set (['test.js']), set([404]), set()) 96 self.assert_handler_response(['/test.js', '/test.exe', '/testhtml'], set (['test.js']), set([404]), set())
97 self.assert_handler_response(['/test.html', '/function.one'], set(['test .html']), set(), set(['function_one'])) 97 self.assert_handler_response(['/test.html', '/function.one'], set(['test .html']), set(), set(['function_one']))
98 self.assert_handler_response(['/some.html'], set(['some.html']), set(), set()) 98 self.assert_handler_response(['/some.html'], set(['some.html']), set(), set())
99
100 def test_svn_log_non_ascii(self):
101 xml_change_log = (u'<?xml version="1.0"?>\n<log>\n<logentry revision="1" >\n'
102 u'<msg>Patch from John Do\xe9.</msg>\n</logentry>\n</l og>')
103 handler = TestReflectionHandlerServeXML()
104 handler.serve_xml(xml_change_log)
105 self.assertEqual(handler.wfile.data, xml_change_log.encode('utf-8'))
OLDNEW
« no previous file with comments | « third_party/WebKit/Tools/Scripts/webkitpy/tool/commands/auto_rebaseline.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698