Upstream version 11.39.266.0
[platform/framework/web/crosswalk.git] / src / third_party / trace-viewer / third_party / tvcm / src / tvcm / unittest / test_error.html
1 <!DOCTYPE html>
2 <!--
3 Copyright (c) 2014 The Chromium Authors. All rights reserved.
4 Use of this source code is governed by a BSD-style license that can be
5 found in the LICENSE file.
6 -->
7 <link rel="import" href="/tvcm.html">
8 <script>
9 'use strict';
10
11 tvcm.exportTo('tvcm.unittest', function() {
12   function TestError(opt_message) {
13     var that = new Error(opt_message);
14     Error.captureStackTrace(that, TestError);
15     that.__proto__ = TestError.prototype;
16     return that;
17   }
18
19   TestError.prototype = {
20     __proto__: Error.prototype
21   };
22
23   return {
24     TestError: TestError
25   };
26 });
27 </script>