Skip to content

Commit c607bc1

Browse files
Remove try block from Test_plotlyfig_perf
1 parent 78368ac commit c607bc1

1 file changed

Lines changed: 5 additions & 16 deletions

File tree

‎plotly/Test_plotlyfig_perf.m‎

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
classdef Test_plotlyfig_perf < PlotlyPerfTestCase
22
% Run as:
3-
%{
4-
res = runperf("Test_plotlyfig_perf");
5-
tb = res.sampleSummary;
6-
%}
3+
% runplotlytests('Test_plotlyfig_perf')
74
methods
85
function testManySubplotsConversionTime(tc)
96
% Stress test: many subplots with multiple lines each.
@@ -20,12 +17,8 @@ function testManySubplotsConversionTime(tc)
2017
hold off;
2118
end
2219

23-
p = plotlyfig(fig, "visible", "off");
24-
try
25-
while tc.keepMeasuring
26-
p = plotlyfig(fig, "visible", "off");
27-
end
28-
catch
20+
while tc.keepMeasuring
21+
p = plotlyfig(fig, "visible", "off");
2922
end
3023

3124
% Verify correctness: one trace per line
@@ -45,12 +38,8 @@ function testCheckescapeLongString(tc)
4538
n = 100000;
4639
val = repmat('a"b\c/d', 1, n);
4740

48-
result = checkescape(val);
49-
try
50-
while tc.keepMeasuring
51-
result = checkescape(val);
52-
end
53-
catch
41+
while tc.keepMeasuring
42+
result = checkescape(val);
5443
end
5544

5645
% Verify correctness

0 commit comments

Comments
 (0)