This is comparing the pointer returned by `expectedText.text()` to be the same as the pointer returned by `node->content().text()`, which will  most likely not be the case unless they are both pointing to `empty_string`.

You can use `memcmp( expectedText.text(), node->content().text(), expectedText.length() ) == 0`, assuming their lengths are both the same.

You should also be able to use `ASSERT_STREQ` and `ASSERT_STRCASEEQ`, http://code.google.com/p/googletest/wiki/Primer#String_Comparison