Sorry for reviving this, but i was wondering about the same question today and the general case it not answered yet.
So, for future visitors, the general case is answered by the following strenghtening of Schwartz's theorem:
Theorem (Schwarz) [T. M. Apostol, Mathematical Analysis (2nd ed.), Theorem 12.12] and [Hubbard, John; Hubbard, Barbara. Vector Calculus, Linear Algebra and Differential Forms (5th ed.). Matrix Editions. pp. 732–733]:
Let $f:\mathbb{R}^2 \rightarrow \mathbb{R}$ be continuously differentiable on and open set around $c \in \mathbb{R}^2$ and let $\partial_x f$ and $\partial_y f$ be totally differentiable in $c$, i.e.
$$\operatorname{lim}_{v\rightarrow 0} \frac{\partial_{x}f(c+v) - \partial_{x}f(c) - D(\partial_{x}f)(c)v}{||v||} = 0,$$
where $D(\partial_{x}f)(c)$ is linear. (and likewise for $\partial_y f$).
Then
$$\partial_{y}\partial_{x}f(c) = \partial_{x}\partial_{y}f(c).$$
proof.
Let $g(x) = f(c + (x, t)) - f(c + (x, 0))$.
Then $$g(t) - g(0) = f(c + (t, t)) - f(c + (t, 0)) - f(c + (0, t)) + f(c).$$
By the mean value theorem,
$$g'(\xi) = \frac{1}{t}\left( f(c + (t, t)) - f(c + (t, 0)) - f(c + (0, t)) + f(c) \right)$$
for some $0 < \xi < t$.
Since $f$ is totally differentiable in a neighbourhood of $c$, we have (for sufficiently small t)
$$g'(\xi) = \frac{dg}{dx}(\xi) = \partial_x f(c + (\xi, t)) - \partial_x f(c + (\xi, 0)).$$
Because $\partial_x f$ is totally differentiable at $c$, we have
$$0 = \operatorname{lim}_{(\xi,t) \rightarrow 0} \frac{1}{\sqrt{\xi^2 + t^2}} \left( \partial_{x}f(c+(\xi, t)) - \partial_{x}f(c) - D(\partial_{x}f)(c)\cdot(\xi, t) \right).$$
Since $D(\partial_{x}f)(c) \cdot (\xi, t) = \partial_{x}\partial_{x}f(c)\xi + \partial_{y}\partial_{x}f(c)t$ and $\xi < t$, it follows that
$$0 = \operatorname{lim}_{t \rightarrow 0} \frac{1}{|t|} \left( \partial_{x}f(c+(\xi, t)) - \partial_{x}f(c) - \partial_{x}\partial_{x}f(c)\xi - \partial_{y}\partial_{x}f(c)t \right) \tag{1}$$
Again, because $\partial_x f$ is totally differentiable at $c$, we have
$$0 = \operatorname{lim}_{\xi \rightarrow 0} \frac{1}{|\xi|} \left( \partial_{x}f(c+(\xi, 0)) - \partial_{x}f(c) - D(\partial_{x}f)(c)\cdot(\xi, 0) \right).$$
Again, because $\xi < t$, it follows that
$$0 = \operatorname{lim}_{t \rightarrow 0} \frac{1}{|t|} \left( \partial_{x}f(c+(\xi, 0)) - \partial_{x}f(c) - \partial_{x}\partial_{x}f(c)\xi\right) \tag{2}$$
Substracting $(2)$ from $(1)$ gives us
$$0 = \operatorname{lim}_{t \rightarrow 0} \frac{1}{|t|} \left( \partial_{x}f(c+(\xi, t)) - \partial_{x}f(c+(\xi, 0)) - \partial_{y}\partial_{x}f(c)t \right).$$
Thus, for $t > 0$,
$$0 = \operatorname{lim}_{t \rightarrow 0} \frac{1}{t} \left( g'(\xi) - \partial_{y}\partial_{x}f(c)t \right),$$
and we get
$$\operatorname{lim}_{t \rightarrow 0} \frac{1}{t^2}\left( f(c + (t, t)) - f(c + (t, 0)) - f(c + (0, t)) + f(c) \right) =\operatorname{lim}_{t \rightarrow 0} \frac{g'(\xi)}{t} = \partial_{y}\partial_{x}f(c).$$
Defining $\tilde{g}(y) = f(c + (t, y)) - f(c + (0, y))$, we again get
$$\tilde{g}(t) - \tilde{g}(0) = f(c + (t, t)) - f(c + (0, t)) - f(c + (t, 0)) + f(c).$$
So, via a similar argument,
$$\operatorname{lim}_{t \rightarrow 0} \frac{1}{t^2}\left( f(c + (t, t)) - f(c + (t, 0)) - f(c + (0, t)) + f(c) \right) =\operatorname{lim}_{t \rightarrow 0} \frac{\tilde{g}'(\xi)}{t} = \partial_{x}\partial_{y}f(c),$$
hence
$$\partial_{y}\partial_{x}f(c) = \partial_{x}\partial_{y}f(c).$$
The contraposition of this theorem answers the general question.