Can I have an example of a sequence of continuous functions $(f_n)_n$ and a continuous function $f:[a,b]\to \mathbb{R}$ such that
$$\int_a^bf_n(x)dx\to\int_a^bf(x)dx,$$ when $n\to+\infty$, but $$\int_a^b|f_n(x)-f(x)|dx$$ does not go to $0$ when $n\to+\infty$.
Let $[a,b] = [0,4]$ and
$$f_n(x) = \begin{cases}\quad n^2x &, 0 \leqslant x \leqslant \frac{1}{n}\\ n^2\left(\frac{2}{n}-x\right) &, \frac{1}{n} \leqslant x \leqslant \frac{3}{n}\\ n^2\left(x-\frac{4}{n}\right) &, \frac{3}{n}\leqslant x \leqslant \frac{4}{n}\\ \qquad 0 &,\frac{4}{n}\leqslant x \leqslant 4.\end{cases}$$
Then $\int_0^4 f_n(x)\,dx = 0$ for all $n$, and $f_n(x) \to 0$ for all $x\in [0,4]$, but
$$\int_0^4 \lvert f_n(x)\rvert\,dx = 2$$
for all $n$.