For every finite Schwartz function $f$ and every $t \in \mathbb{R}$, define the Dirac delta as
$$\int_{-\infty}^\infty dt f(t) \delta(t-t') := f(t').$$
How do I proof with this definition that $$\int_{-\infty}^\infty d\omega e^{i\omega(t-t')} =2\pi \delta(t-t'). $$ When I use complex analysis, this gives me zero for all $t, t'$ since there are no poles and the contour, which clearly is wrong.
I would like to know this way of a proof to understand what the following integral is in distribution sense: $$\int_{-\infty}^\infty d\omega e^{i\omega(t-t')} |\omega|^{a}, $$ with real $a > 0$.