Changeset 139777 in webkit
- Timestamp:
- Jan 15, 2013 12:57:59 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r139770 r139777 1 2013-01-15 James Simonsen <simonjam@chromium.org> 2 3 [User Timing] INVALID_ACCESS_ERR should be thrown if measuring from a 0 Nav Timing value 4 https://bugs.webkit.org/show_bug.cgi?id=106935 5 6 Reviewed by Tony Gentilcore. 7 8 * http/tests/w3c/webperf/submission/Intel/user-timing/test_user_timing_measure_exception-expected.txt: 9 * http/tests/w3c/webperf/submission/Intel/user-timing/test_user_timing_measure_exception.html: 10 1 11 2013-01-13 Dirk Schulze <dschulze@adobe.com> 2 12 -
trunk/LayoutTests/http/tests/w3c/webperf/submission/Intel/user-timing/test_user_timing_measure_exception-expected.txt
r131789 r139777 11 11 PASS Invocation of context.measure("Exception5", "ExistMark", "NonExistMark1") should throw SYNTAX_ERR Exception. 12 12 PASS Invocation of context.measure("Exception6", "NonExistMark1", "NonExistMark2") should throw SYNTAX_ERR Exception. 13 PASS Invocation of context.measure("Exception7", "redirectStart") should throw INVALID_ACCESS_ERR Exception. 13 14 -
trunk/LayoutTests/http/tests/w3c/webperf/submission/Intel/user-timing/test_user_timing_measure_exception.html
r131789 r139777 26 26 test_method_throw_exception('context.measure("Exception5", "ExistMark", "NonExistMark1")', 'SYNTAX_ERR'); 27 27 test_method_throw_exception('context.measure("Exception6", "NonExistMark1", "NonExistMark2")', 'SYNTAX_ERR'); 28 test_method_throw_exception('context.measure("Exception7", "redirectStart")', 'INVALID_ACCESS_ERR'); 28 29 </script> 29 30 </body> -
trunk/Source/WebCore/ChangeLog
r139775 r139777 1 2013-01-15 James Simonsen <simonjam@chromium.org> 2 3 [User Timing] INVALID_ACCESS_ERR should be thrown if measuring from a 0 Nav Timing value 4 https://bugs.webkit.org/show_bug.cgi?id=106935 5 6 Reviewed by Tony Gentilcore. 7 8 Test: http/tests/w3c/webperf/submission/Intel/user-timing/test_user_timing_measure_exception.html 9 10 * page/PerformanceUserTiming.cpp: 11 (WebCore::UserTiming::findExistingMarkStartTime): 12 1 13 2013-01-15 Tommy Widenflycht <tommyw@google.com> 2 14 -
trunk/Source/WebCore/page/PerformanceUserTiming.cpp
r136565 r139777 124 124 return m_marksMap.get(markName).last()->startTime(); 125 125 126 if (restrictedKeyMap().contains(markName)) 127 return static_cast<double>((m_performance->timing()->*(restrictedKeyMap().get(markName)))()) - m_performance->timing()->navigationStart(); 126 if (restrictedKeyMap().contains(markName)) { 127 double value = static_cast<double>((m_performance->timing()->*(restrictedKeyMap().get(markName)))()); 128 if (!value) { 129 ec = INVALID_ACCESS_ERR; 130 return 0.0; 131 } 132 return value - m_performance->timing()->navigationStart(); 133 } 128 134 129 135 ec = SYNTAX_ERR;
Note: See TracChangeset
for help on using the changeset viewer.