(self, chrome_trace_format)
| 34 | class TimelineTest(test.TestCase): |
| 35 | |
| 36 | def _validateTrace(self, chrome_trace_format): |
| 37 | # Check that the supplied string is valid JSON. |
| 38 | trace = json.loads(chrome_trace_format) |
| 39 | # It should have a top-level key containing events. |
| 40 | self.assertTrue('traceEvents' in trace) |
| 41 | # Every event in the list should have a 'ph' field. |
| 42 | for event in trace['traceEvents']: |
| 43 | self.assertTrue('ph' in event) |
| 44 | |
| 45 | def testSimpleTimeline(self): |
| 46 | run_options = config_pb2.RunOptions( |
no outgoing calls
no test coverage detected